This commit is contained in:
Kovid Goyal 2013-07-12 16:01:16 +05:30
parent 71e27433ec
commit 14441ff052

View File

@ -32,6 +32,8 @@ class ET(object):
return newres
def compare_argspecs(old, new, attr):
# We dont compare the names of the non-keyword arguments as they are often
# different and they dont affect the usage of the API.
num = len(old.defaults or ())
ok = len(old.args) == len(new.args) and old.defaults == new.defaults and (num == 0 or old.args[-num:] == new.args[-num:])