running lib2to3.fixes.fix_funcattrs

This commit is contained in:
ilvalle
2016-05-29 08:31:20 +02:00
parent 8074927191
commit 9b9ed0ad0f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -5297,10 +5297,10 @@ def reverse_geocode(lat, lng, lang=None):
def universal_caller(f, *a, **b):
c = f.func_code.co_argcount
n = f.func_code.co_varnames[:c]
c = f.__code__.co_argcount
n = f.__code__.co_varnames[:c]
defaults = f.func_defaults or []
defaults = f.__defaults__ or []
pos_args = n[0:-len(defaults)]
named_args = n[-len(defaults):]