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):
133133 return '({})' .format (arguments )
134134
135135
136- def positional_not_allowed_exception (* args , ** kwargs ):
136+ def _positional_not_allowed_exception (* args , ** kwargs ):
137137 arguments = repr_args_kwargs (* args , ** kwargs )
138138
139139 return DecoratorArgumentsError (
@@ -147,13 +147,13 @@ def decorator_decorator(d):
147147 def decorator_wrapper (* args , ** decorator_arguments ):
148148 """this is decorator_wrapper"""
149149 if len (args ) > 1 :
150- raise positional_not_allowed_exception ()
150+ raise _positional_not_allowed_exception ()
151151
152152 if len (args ) == 1 :
153153 maybe_f = args [0 ]
154154
155155 if len (decorator_arguments ) > 0 or not callable (maybe_f ):
156- raise positional_not_allowed_exception ()
156+ raise _positional_not_allowed_exception ()
157157
158158 f = maybe_f
159159 return d (f )
You can’t perform that action at this time.
0 commit comments