mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +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:
@@ -290,7 +290,7 @@ class FileBrowseButtonWithHistory( FileBrowseButton ):
|
||||
|
||||
def GetHistory( self ):
|
||||
"""Return the current history list"""
|
||||
if self.historyCallBack != None:
|
||||
if self.historyCallBack is not None:
|
||||
return self.historyCallBack()
|
||||
elif self.history:
|
||||
return list( self.history )
|
||||
@@ -300,7 +300,7 @@ class FileBrowseButtonWithHistory( FileBrowseButton ):
|
||||
|
||||
def OnSetFocus(self, event):
|
||||
"""When the history scroll is selected, update the history"""
|
||||
if self.historyCallBack != None:
|
||||
if self.historyCallBack is not None:
|
||||
self.SetHistory( self.historyCallBack(), control=self.textControl)
|
||||
event.Skip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user