aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Kearns <bdkearns@gmail.com>2014-08-28 14:19:22 -0400
committerBrian Kearns <bdkearns@gmail.com>2014-08-28 14:19:22 -0400
commitbfcf0c8c775f079b3d0788bdcde7074198243466 (patch)
tree28b94ec4e783d93eb47c54fa46fccccc2aa4e108 /lib-python
parentadjust this test for pypy (diff)
downloadpypy-bfcf0c8c775f079b3d0788bdcde7074198243466.tar.gz
pypy-bfcf0c8c775f079b3d0788bdcde7074198243466.tar.bz2
pypy-bfcf0c8c775f079b3d0788bdcde7074198243466.zip
adjust this function to work on pypy?
Diffstat (limited to 'lib-python')
-rw-r--r--lib-python/2.7/idlelib/CallTips.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib-python/2.7/idlelib/CallTips.py b/lib-python/2.7/idlelib/CallTips.py
index 3db26362c2..2e9e7ffae3 100644
--- a/lib-python/2.7/idlelib/CallTips.py
+++ b/lib-python/2.7/idlelib/CallTips.py
@@ -124,6 +124,7 @@ def _find_constructor(class_ob):
# Given a class object, return a function object used for the
# constructor (ie, __init__() ) or None if we can't find one.
try:
+ class_ob.__init__.im_func.func_code.co_code
return class_ob.__init__.im_func
except AttributeError:
for base in class_ob.__bases__: