From c5e378da41641d5bc1e9b5c6c11bd470ff90b3e3 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 4 May 2004 08:34:56 +0000 Subject: Testing for None should be done with 'is' --- Lib/idlelib/CallTips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 67d97d2..97d9746 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 -- cgit v0.12