I'm an idiot
This commit is contained in:
parent
c0b34181bc
commit
3f5ce64407
@ -97,11 +97,13 @@ def checkargs(exact=None, min=None, max=None):
|
||||
expression, "`%%s' needs %d arguments, got %%d" % exact)
|
||||
|
||||
if min is not None and (len(expression) - 1) < min:
|
||||
_raise_wrong_args_number(expression,
|
||||
_raise_wrong_args_number(
|
||||
expression,
|
||||
"`%%s' needs at least %d arguments, got %%d" % (min))
|
||||
|
||||
if max is not None and (len(expression) - 1) > max:
|
||||
_raise_wrong_args_number(expression,
|
||||
_raise_wrong_args_number(
|
||||
expression,
|
||||
"`%%s' needs at most %d arguments, got %%d" % (max))
|
||||
|
||||
return fn(self, expression)
|
||||
|
Loading…
x
Reference in New Issue
Block a user