Scripts with functions should allow to be included in other source files.
Apply more pythonic style. Ask forgiveness not permission.
Differential D1230
Make the FANTOIR code more pythonic xcombelle on Nov 17 2017, 15:01. Authored by Tags None Referenced Files
Subscribers None
Details Scripts with functions should allow to be included in other source files. Apply more pythonic style. Ask forgiveness not permission. Check if the behavior is unchanged. ./extract_streets.py FANTOIR1017 before.txt git pull ./extract_streets.py FANTOIR1017 after.txt diff before.txt after.txt
Diff Detail
Event TimelineComment Actions $ arc patch D1230 $ autopep8 ./roles/viperserv/fantoir/files/extract_streets.py > e $ mv e ./roles/viperserv/fantoir/files/extract_streets.py $ flake8 ./roles/viperserv/fantoir/files/extract_streets.py ./roles/viperserv/fantoir/files/extract_streets.py:17:37: F841 local variable 'output' is assigned to but never used ./roles/viperserv/fantoir/files/extract_streets.py:17:80: E501 line too long (80 > 79 characters) ./roles/viperserv/fantoir/files/extract_streets.py:23:21: F821 undefined name 'fd' ./roles/viperserv/fantoir/files/extract_streets.py:31:80: E501 line too long (83 > 79 characters)
|