Change order of keyword only arguments.

This commit is contained in:
Graham Dumpleton
2013-10-07 15:04:56 +11:00
parent af08c72a39
commit db16eb05d9

View File

@@ -130,7 +130,7 @@ class AdapterWrapper(FunctionWrapper):
# function so the wrapper is effectively indistinguishable from the
# original wrapped function.
def decorator(wrapper=None, adapter=None, enabled=None):
def decorator(wrapper=None, enabled=None, adapter=None):
# The decorator should be supplied with a single positional argument
# which is the wrapper function to be used to implement the
# decorator. This may be preceded by a step whereby the keyword
@@ -181,7 +181,7 @@ def decorator(wrapper=None, adapter=None, enabled=None):
# decorator again wrapped in a partial using the collected
# arguments.
return partial(decorator, adapter=adapter, enabled=enabled)
return partial(decorator, enabled=enabled, adapter=adapter)
# Decorator for implementing thread synchronization. It can be used as a
# decorator, in which case the synchronization context is determined by