]> granicus.if.org Git - python/commitdiff
Testing for None should be done with 'is'
authorRaymond Hettinger <python@rcn.com>
Tue, 4 May 2004 08:34:56 +0000 (08:34 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 4 May 2004 08:34:56 +0000 (08:34 +0000)
Lib/idlelib/CallTips.py

index 67d97d27bbb7811653fde71f5ab632c92fe437a9..97d9746688ec56bdedc5aa022096d2ab3a03030e 100644 (file)
@@ -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