python-modernize -f lib2to3.fixes.fix_methodattrs
This commit is contained in:
parent
67af38a1fe
commit
e071f793ee
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue