Testing for None should be done with 'is'

This commit is contained in:
Raymond Hettinger 2004-05-04 08:34:56 +00:00
parent 0b569bb399
commit c5e378da41

View file

@ -21,7 +21,7 @@ class CallTips:
] ]
def __init__(self, editwin=None): def __init__(self, editwin=None):
if editwin == None: # subprocess and test if editwin is None: # subprocess and test
self.editwin = None self.editwin = None
return return
self.editwin = editwin self.editwin = editwin