Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SyntaxWarning: "is" with a literal. (#2924)
Did you mean "=="?
  • Loading branch information
Lucki authored and Thomas Kowaliczek-Schmer committed Nov 23, 2019
1 parent 187653c commit 05267e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horizons/extscheduler.py
Expand Up @@ -75,7 +75,7 @@ def tick(self):
assert dont_use is elem
obj = elem[1]
obj.callback()
if obj.loops > 0 or obj.loops is -1:
if obj.loops > 0 or obj.loops == -1:
self.add_object(obj) # re-add object
else:
break
Expand Down

0 comments on commit 05267e0

Please sign in to comment.