python-modernize -f lib2to3.fixes.fix_methodattrs

This commit is contained in:
Tomas Kopecek 2018-06-28 16:57:42 +02:00 committed by Mike McLean
parent 9173587056
commit f03646bab5

View file

@ -119,7 +119,7 @@ class HandlerRegistry(object):
if ret:
return ret
ret = tuple(inspect.getargspec(func))
if inspect.ismethod(func) and func.im_self:
if inspect.ismethod(func) and func.__self__:
# bound method, remove first arg
args, varargs, varkw, defaults = ret
if args: