From b20f83543a76fc1237a9030fefd81fb862685708 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 3 Aug 2021 19:54:19 +0430 Subject: pep-8 and poetry --- delf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'delf.py') diff --git a/delf.py b/delf.py index b152bd0..27b574f 100755 --- a/delf.py +++ b/delf.py @@ -4,6 +4,7 @@ import code import signal from load import premain, CLIArgParser, SigHandler_SIGINT + def main(): argparser = CLIArgParser() if argparser.args.dbg: @@ -11,7 +12,8 @@ def main(): premain(argparser) except Exception as e: print(e.__doc__) - if e.message: print(e.message) + if e.message: + print(e.message) signal.signal(signal.SIGINT, SigHandler_SIGINT) variables = globals().copy() variables.update(locals()) @@ -20,5 +22,6 @@ def main(): else: premain(argparser) + if __name__ == "__main__": main() -- cgit v1.2.3