cosmetic pep8
authorparmentelat <thierry.parmentelat@inria.fr>
Wed, 12 Dec 2018 18:03:30 +0000 (19:03 +0100)
committerparmentelat <thierry.parmentelat@inria.fr>
Wed, 12 Dec 2018 18:03:30 +0000 (19:03 +0100)
migrations/extract-views.py

index 9424644..4a20465 100755 (executable)
@@ -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()
-