git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
review packaging for f37 (1/n)
[plcapi.git]
/
migrations
/
extract-views.py
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..
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
out_lines = []
for line in lines:
# remove comment
@@
-52,7
+51,6
@@
if __name__ == '__main__':
input = sys.argv[1]
try:
output = sys.argv[2]
input = sys.argv[1]
try:
output = sys.argv[2]
- except:
+ except
Exception
:
output = None
Schema(input, output).parse()
output = None
Schema(input, output).parse()
-