summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/CallTips.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2006-07-23 04:19:49 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2006-07-23 04:19:49 (GMT)
commitc6bacd5606cbf3f76ae7e116e425a61d291c68fc (patch)
treec48d302bad1ac04cec1c8bf691f7810f5ab42b7d /Lib/idlelib/CallTips.py
parent7802af426eee29071b9aaa23297119ca71d091f9 (diff)
downloadcpython-c6bacd5606cbf3f76ae7e116e425a61d291c68fc.zip
cpython-c6bacd5606cbf3f76ae7e116e425a61d291c68fc.tar.gz
cpython-c6bacd5606cbf3f76ae7e116e425a61d291c68fc.tar.bz2
Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren Guthrie
Diffstat (limited to 'Lib/idlelib/CallTips.py')
-rw-r--r--Lib/idlelib/CallTips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
index 47a1d55..997eb13 100644
--- a/Lib/idlelib/CallTips.py
+++ b/Lib/idlelib/CallTips.py
@@ -127,7 +127,7 @@ def get_arg_text(ob):
argText = ""
if ob is not None:
argOffset = 0
- if type(ob)==types.ClassType:
+ if type(ob) in (types.ClassType, types.TypeType):
# Look for the highest __init__ in the class chain.
fob = _find_constructor(ob)
if fob is None: