Skip to content

Commit

Permalink
Lint python
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Sep 2, 2023
1 parent b492979 commit e6f5c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion control/update_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def print_source(source: Dict[str, str]) -> None:
for k in source:
if k == "id":
continue
if type(source[k]) == list:
if type(source[k]) is list:
for e in source[k]:
show(" %-10s = %s" % (k, e))
else:
Expand Down
2 changes: 1 addition & 1 deletion modules/OsmSax.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def _formatData(data) -> Dict[str, str]:

class OsmSaxWriter(XMLGenerator):
def __init__(self, out, enc):
if type(out) == str:
if type(out) is str:
XMLGenerator.__init__(self, open(out, "w"), enc)
else:
XMLGenerator.__init__(self, out, enc)
Expand Down

0 comments on commit e6f5c70

Please sign in to comment.