Style fixes
This commit is contained in:
parent
0eb795b4a5
commit
914011175f
@ -67,14 +67,14 @@ def checkargs(exact=None, min=None, max=None):
|
|||||||
exact)
|
exact)
|
||||||
|
|
||||||
if min is not None and (len(expression) - 1) < min:
|
if min is not None and (len(expression) - 1) < min:
|
||||||
_raise_wrong_args_number(expression,
|
_raise_wrong_args_number(
|
||||||
"`%%s' needs at least %d arguments, got %%d" %
|
expression,
|
||||||
min)
|
"`%%s' needs at least %d arguments, got %%d" % (min))
|
||||||
|
|
||||||
if max is not None and (len(expression) - 1) > max:
|
if max is not None and (len(expression) - 1) > max:
|
||||||
_raise_wrong_args_number(expression,
|
_raise_wrong_args_number(
|
||||||
"`%%s' needs at most %d arguments, got %%d" %
|
expression,
|
||||||
max)
|
"`%%s' needs at most %d arguments, got %%d" % (max))
|
||||||
|
|
||||||
return fn(self, expression)
|
return fn(self, expression)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user