Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.8
Changeset: r73114:25424a2825f1
Date: 2014-08-28 14:19 -0400
http://bitbucket.org/pypy/pypy/changeset/25424a2825f1/
Log: adjust this function to work on pypy?
diff --git a/lib-python/2.7/idlelib/CallTips.py
b/lib-python/2.7/idlelib/CallTips.py
--- a/lib-python/2.7/idlelib/CallTips.py
+++ b/lib-python/2.7/idlelib/CallTips.py
@@ -124,6 +124,7 @@
# 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__:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit