diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2021-01-06 18:55:57 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2021-01-06 18:57:50 +0100 |
| commit | b52a7325c1e0d1b6e87e2bbe96ebafcc22be167a (patch) | |
| tree | af931aef7be808a9162016c52b98b4bfa19fc643 /osm_parser.py | |
| parent | 1afff10fa0418647f35fdfc1ec95bff92e37ec11 (diff) | |
| download | tdde25-b52a7325c1e0d1b6e87e2bbe96ebafcc22be167a.tar.gz | |
pep8
Diffstat (limited to 'osm_parser.py')
| -rw-r--r-- | osm_parser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/osm_parser.py b/osm_parser.py index 7145726..b3eed86 100644 --- a/osm_parser.py +++ b/osm_parser.py @@ -121,7 +121,8 @@ class OSMParser: for node in el.iter(OSM_WAYNODE)) tags = {tag.get(OSM_TAG_KEY): tag.get(OSM_TAG_VALUE) for tag in el.iter(OSM_TAG) - if self.allow_all or tag.get(OSM_TAG_KEY) in self.way_tags} + if self.allow_all + or tag.get(OSM_TAG_KEY) in self.way_tags} # Yield the edge id, the road and the tags yield { |
