Fixes issue # 1554:

Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
This commit is contained in:
Per A. Brodtkorb
2020-03-23 11:53:36 +01:00
parent ef1edacc20
commit fc1823315b
50 changed files with 174 additions and 174 deletions

View File

@@ -718,7 +718,7 @@ class IntCtrl(wx.TextCtrl):
if max is None: max = value
# if bounds set, and value is None, return False
if value == None and (min is not None or max is not None):
if value is None and (min is not None or max is not None):
return 0
else:
return min <= value <= max