summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/AutoComplete.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-03-29 15:24:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-03-29 15:24:25 (GMT)
commit5b63acd31e0e40c1a9a9e9762905b0054ff37994 (patch)
tree763a6e10d4c0fa64797f5311491a3cbeb0f7e5d9 /Lib/idlelib/AutoComplete.py
parent672fbf519568bc295aa64992dcbabe0eebccb5fc (diff)
downloadcpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.zip
cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.gz
cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.bz2
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
Diffstat (limited to 'Lib/idlelib/AutoComplete.py')
-rw-r--r--Lib/idlelib/AutoComplete.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py
index e1549be..bed2b8c 100644
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -35,10 +35,9 @@ class AutoComplete:
"popupwait", type="int", default=0)
def __init__(self, editwin=None):
- if editwin == None: # subprocess and test
- self.editwin = None
- return
self.editwin = editwin
+ if editwin is None: # subprocess and test
+ return
self.text = editwin.text
self.autocompletewindow = None