From e6f32fdd9b373dfcd100c7accb41f57d83c2f0a1 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 26 Jan 2022 21:35:20 -0800 Subject: Ahem. Still running black? --- config.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'config.py') diff --git a/config.py b/config.py index a608cf5..0edb169 100644 --- a/config.py +++ b/config.py @@ -239,9 +239,7 @@ def parse(entry_module: Optional[str]) -> Dict[str, Any]: if loadfile is not None: if saw_other_args: - msg = ( - f'Augmenting commandline arguments with those from {loadfile}.' - ) + msg = f'Augmenting commandline arguments with those from {loadfile}.' print(msg, file=sys.stderr) saved_messages.append(msg) if not os.path.exists(loadfile): @@ -252,9 +250,7 @@ def parse(entry_module: Optional[str]) -> Dict[str, Any]: sys.exit(-1) with open(loadfile, 'r') as rf: newargs = rf.readlines() - newargs = [ - arg.strip('\n') for arg in newargs if 'config_savefile' not in arg - ] + newargs = [arg.strip('\n') for arg in newargs if 'config_savefile' not in arg] sys.argv += newargs # Parse (possibly augmented, possibly completely overwritten) -- cgit v1.3