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

@@ -122,7 +122,7 @@ class CharacterSelection(wx.Panel):
def getActiveCharacter(self):
selection = self.charChoice.GetCurrentSelection()
return self.charChoice.GetClientData(selection) if selection is not -1 else None
return self.charChoice.GetClientData(selection) if selection != -1 else None
def refreshCharacterList(self, event=None):
choice = self.charChoice