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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5e378da41641d5bc1e9b5c6c11bd470ff90b3e3;p=python Testing for None should be done with 'is' --- diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 67d97d27bb..97d9746688 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