mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:52:31 +02:00
...
This commit is contained in:
parent
71e27433ec
commit
14441ff052
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ def __call__(self, test):
|
|||
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:])
|
||||
|
|
|
|||
Loading…
Reference in a new issue