This commit is contained in:
Kovid Goyal
2018-05-23 09:35:29 +05:30
parent 39c98e83da
commit ba554fb01d

View File

@@ -99,7 +99,7 @@ def func_with_args(*names):
def w(f):
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))
args_funcs[name] = f
return f