From dee35d149e56d2956fb759d44b6d81ac4688e9bd Mon Sep 17 00:00:00 2001 From: Dan Pascu <dan@ag-projects.com> Date: Mon, 8 Oct 2018 05:12:57 +0000 Subject: [PATCH] Fixed some PEP-8 violations --- bin/blink | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/blink b/bin/blink index f34c817..7849455 100644 --- a/bin/blink +++ b/bin/blink @@ -7,6 +7,7 @@ import sys def except_hook(exception_type, exception_value, traceback): sys.__excepthook__(exception_type, exception_value, traceback) + sys.excepthook = except_hook # pyqt5 (>=5.5) will abort if an exception happens in python code when called from Qt, unless we define this @@ -27,7 +28,6 @@ if os.path.basename(script_dir) == 'bin' and os.path.exists(os.path.join(parent_ position = 0 sys.path.insert(position, parent_dir) - if frozen: from StringIO import StringIO @@ -68,4 +68,3 @@ if __name__ == '__main__': blink = Blink() blink.run() os._exit(0) - -- 2.21.0