From: Raymond Hettinger Date: Tue, 4 May 2004 08:34:56 +0000 (+0000) Subject: Testing for None should be done with 'is' X-Git-Tag: v2.4a1~459 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5e378da41641d5bc1e9b5c6c11bd470ff90b3e3;p=thirdparty%2FPython%2Fcpython.git Testing for None should be done with 'is' --- diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 67d97d27bbb7..97d9746688ec 100644 --- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -21,7 +21,7 @@ class CallTips: ] def __init__(self, editwin=None): - if editwin == None: # subprocess and test + if editwin is None: # subprocess and test self.editwin = None return self.editwin = editwin