...
This commit is contained in:
parent
39c98e83da
commit
ba554fb01d
@ -99,7 +99,7 @@ def func_with_args(*names):
|
|||||||
|
|
||||||
def w(f):
|
def w(f):
|
||||||
for name in names:
|
for name in names:
|
||||||
if name in args_funcs:
|
if args_funcs.setdefault(name, f) is not f:
|
||||||
raise ValueError('the args_func {} is being redefined'.format(name))
|
raise ValueError('the args_func {} is being redefined'.format(name))
|
||||||
args_funcs[name] = f
|
args_funcs[name] = f
|
||||||
return f
|
return f
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user