mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user