Fix improper use of operator "is" when comparing to literal values

This commit is contained in:
DarkPhoenix
2020-01-31 18:16:36 +03:00
parent 4d4680961e
commit 2f4a5a4830
4 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ def _resolve_ship(fitting, sMkt, b_localized):
pyfalog.warning("Caught exception on _resolve_ship")
pyfalog.error(e)
limit -= 1
if limit is 0:
if limit == 0:
break
shipType = anything
must_retry = True
@@ -132,7 +132,7 @@ def _resolve_module(hardware, sMkt, b_localized):
pyfalog.warning("Caught exception on _resolve_module")
pyfalog.error(e)
limit -= 1
if limit is 0:
if limit == 0:
break
moduleName = emergency
must_retry = True