[Python-checkins] cpython (2.7): Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger.
terry.reedy
python-checkins at python.org
Wed Jun 4 09:10:19 CEST 2014
http://hg.python.org/cpython/rev/09b33fc96a50
changeset: 91013:09b33fc96a50
branch: 2.7
parent: 91010:4f1abf87df12
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Wed Jun 04 03:09:56 2014 -0400
summary:
Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger.
files:
Lib/idlelib/CallTips.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
--- a/Lib/idlelib/CallTips.py
+++ b/Lib/idlelib/CallTips.py
@@ -167,7 +167,7 @@
# bit of a hack for methods - turn it into a function
# and drop the "self" param for bound methods
fob = ob.im_func
- if ob.im_self:
+ if ob.im_self is not None:
arg_offset = 1
elif type(ob_call) == types.MethodType:
# a callable class instance
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list