1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Date: Sun, 28 Aug 2022 12:43:20 +0200
Subject: Fix Syntax warning while installing update
Origin: https://github.com/unknown-horizons/unknown-horizons/commit/05267e0d7f1223ddd0517f4f02c4d8444668f559.patch
Bug: https://github.com/unknown-horizons/unknown-horizons/pull/2924
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993132
Forwarded: not-needed
Applied-Upstream: https://github.com/unknown-horizons/unknown-horizons/commit/05267e0d7f1223ddd0517f4f02c4d8444668f559.patch
Last-Update: 2022-08-28 <YYYY-MM-DD, last update of the meta-information, optional>
See Debian bug.
Last-Update: 2022-08-28 <YYYY-MM-DD, last update of the meta-information, optional>
---
horizons/extscheduler.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/horizons/extscheduler.py b/horizons/extscheduler.py
index 3f46995..b31cc7f 100644
--- a/horizons/extscheduler.py
+++ b/horizons/extscheduler.py
@@ -69,7 +69,7 @@ class ExtScheduler(object, metaclass=ManualConstructionSingleton):
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
|