Skip to content

Commit 5db51bb

Browse files
committed
Lint pyhton code
1 parent abb057f commit 5db51bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analysers/Analyser_Merge.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def _get_millesime(self) -> Optional[str]:
430430
else:
431431
self.millesime = self.get_millesime()
432432
downloader.set_millesime(self.fileUrl, self.millesime)
433-
if self.millesime is None or type(self.millesime) == str:
433+
if self.millesime is None or type(self.millesime) is str:
434434
return self.millesime
435435
return self.millesime.strftime("%Y-%m")
436436

modules/OsmSax.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def _formatData(data):
328328
class OsmSaxWriter(XMLGenerator):
329329

330330
def __init__(self, out, enc):
331-
if type(out) == str:
331+
if type(out) is str:
332332
XMLGenerator.__init__(self, open(out, "w"), enc)
333333
else:
334334
XMLGenerator.__init__(self, out, enc)

0 commit comments

Comments
 (0)