File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def repr_args_kwargs(*args, **kwargs):
133
133
return '({})' .format (arguments )
134
134
135
135
136
- def positional_not_allowed_exception (* args , ** kwargs ):
136
+ def _positional_not_allowed_exception (* args , ** kwargs ):
137
137
arguments = repr_args_kwargs (* args , ** kwargs )
138
138
139
139
return DecoratorArgumentsError (
@@ -147,13 +147,13 @@ def decorator_decorator(d):
147
147
def decorator_wrapper (* args , ** decorator_arguments ):
148
148
"""this is decorator_wrapper"""
149
149
if len (args ) > 1 :
150
- raise positional_not_allowed_exception ()
150
+ raise _positional_not_allowed_exception ()
151
151
152
152
if len (args ) == 1 :
153
153
maybe_f = args [0 ]
154
154
155
155
if len (decorator_arguments ) > 0 or not callable (maybe_f ):
156
- raise positional_not_allowed_exception ()
156
+ raise _positional_not_allowed_exception ()
157
157
158
158
f = maybe_f
159
159
return d (f )
You can’t perform that action at this time.
0 commit comments