Commit ee0b672f authored by Terry Jan Reedy's avatar Terry Jan Reedy

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

parent 8ba9e450
......@@ -167,7 +167,7 @@ def get_arg_text(ob):
# 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment