util.py: relocate lesser-used functions to util2.py

This commit is contained in:
The MMGen Project 2022-10-17 18:37:22 +00:00
commit 9888fe4c65
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
21 changed files with 192 additions and 173 deletions

View file

@ -44,7 +44,7 @@ def exec_wrapper_write_traceback(e,exit_val):
cwd = os.path.abspath('.')
def fixup_fn(fn_in):
from mmgen.util import removeprefix,removesuffix
from mmgen.util2 import removeprefix,removesuffix
fn = removeprefix(removeprefix(fn_in,cwd+'/'),'test/overlay/tree/')
return removesuffix(fn,'_orig.py') + '.py' if fn.endswith('_orig.py') else fn
# Python 3.9: