git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d763c5
)
cosmetic pep8
author
parmentelat
<thierry.parmentelat@inria.fr>
Wed, 12 Dec 2018 18:03:30 +0000
(19:03 +0100)
committer
parmentelat
<thierry.parmentelat@inria.fr>
Wed, 12 Dec 2018 18:03:30 +0000
(19:03 +0100)
migrations/extract-views.py
patch
|
blob
|
history
diff --git
a/migrations/extract-views.py
b/migrations/extract-views.py
index
9424644
..
4a20465
100755
(executable)
--- 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()
-