Tools: Comparison to `None` should be `cond is None`

This commit is contained in:
Pierre Kancir 2023-08-31 23:48:00 +02:00 committed by Peter Barker
parent 9d76d1e3df
commit 9f4dbb2727
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ class MagcalController(CalController):
# this is set to None so we can ensure we don't get
# progress reports for completed compasses.
self.last_progress[m.compass_id] = None
if len(self.last_progress.values()) and all(progress == None for progress in self.last_progress.values()):
if len(self.last_progress.values()) and all(progress is None for progress in self.last_progress.values()):
self.stop()
return