From d9863385214bc9d48ce03aece3b5781c34fdd586 Mon Sep 17 00:00:00 2001 From: parmentelat Date: Wed, 12 Dec 2018 19:03:30 +0100 Subject: [PATCH] cosmetic pep8 --- migrations/extract-views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/migrations/extract-views.py b/migrations/extract-views.py index 9424644..4a20465 100755 --- a/migrations/extract-views.py +++ b/migrations/extract-views.py @@ -24,8 +24,7 @@ class Schema: parts = contents.split(";") for part in parts: # normalize: remove comments, linebreaks, trailing spaces.. - normalized='' - lines=part.split('\n'); + lines = part.split('\n') out_lines = [] for line in lines: # remove comment @@ -52,7 +51,6 @@ if __name__ == '__main__': input = sys.argv[1] try: output = sys.argv[2] - except: + except Exception: output = None Schema(input, output).parse() - -- 2.43.0