summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ObjectBrowser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/ObjectBrowser.py')
-rw-r--r--Lib/idlelib/ObjectBrowser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/ObjectBrowser.py b/Lib/idlelib/ObjectBrowser.py
index a2a6cee..b4f64b6 100644
--- a/Lib/idlelib/ObjectBrowser.py
+++ b/Lib/idlelib/ObjectBrowser.py
@@ -126,7 +126,7 @@ dispatch = {
def make_objecttreeitem(labeltext, object, setfunction=None):
t = type(object)
- if dispatch.has_key(t):
+ if t in dispatch:
c = dispatch[t]
else:
c = ObjectTreeItem