From ee0b672f7f71ad13bbd5fe66c860f38521f81934 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 4 Jun 2014 03:09:56 -0400 Subject: [PATCH] Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger. --- Lib/idlelib/CallTips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 5b4a04b7d6..0662880ff1 100644 --- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -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 -- 2.50.1