Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger.

This commit is contained in:
Terry Jan Reedy 2014-06-04 03:09:56 -04:00
parent 8ba9e450c9
commit ee0b672f7f
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ def get_arg_text(ob):
# bit of a hack for methods - turn it into a function # bit of a hack for methods - turn it into a function
# and drop the "self" param for bound methods # and drop the "self" param for bound methods
fob = ob.im_func fob = ob.im_func
if ob.im_self: if ob.im_self is not None:
arg_offset = 1 arg_offset = 1
elif type(ob_call) == types.MethodType: elif type(ob_call) == types.MethodType:
# a callable class instance # a callable class instance