commit | ee0b672f7f71ad13bbd5fe66c860f38521f81934 | [log] [tgz] |
---|---|---|
author | Terry Jan Reedy <tjreedy@udel.edu> | Wed Jun 04 03:09:56 2014 -0400 |
committer | Terry Jan Reedy <tjreedy@udel.edu> | Wed Jun 04 03:09:56 2014 -0400 |
tree | 8f2d4067adf8a1f970a338a3b73ca97d6a410142 | |
parent | 8ba9e450c99230d9f8e611ce08edf72dbd7973c7 [diff] [blame] |
Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger.
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 5b4a04b..0662880 100644 --- 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