]> granicus.if.org Git - python/commitdiff
Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger.
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 4 Jun 2014 07:09:56 +0000 (03:09 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Wed, 4 Jun 2014 07:09:56 +0000 (03:09 -0400)
Lib/idlelib/CallTips.py

index 5b4a04b7d6b096f9967d74160fe444eda8bfb2ff..0662880ff1d244e8dcecd292449cbac227e71454 100644 (file)
@@ -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