diff --git a/src/wrapt/decorators.py b/src/wrapt/decorators.py index dd6016e..a3623f6 100644 --- a/src/wrapt/decorators.py +++ b/src/wrapt/decorators.py @@ -255,7 +255,7 @@ def decorator(wrapper=None, enabled=None, adapter=None): # we need to first check that use of the decorator # hadn't been disabled by a simple boolean. If it was, # the target function to be wrapped is returned instead. - + _enabled = enabled if type(_enabled) is bool: if not _enabled: diff --git a/src/wrapt/importer.py b/src/wrapt/importer.py index 1eca4b6..7fd2d8d 100644 --- a/src/wrapt/importer.py +++ b/src/wrapt/importer.py @@ -9,7 +9,7 @@ import threading PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 -if PY3: +if PY3: import importlib string_types = str, else: diff --git a/src/wrapt/wrappers.py b/src/wrapt/wrappers.py index 7e8e0d7..1be4aba 100644 --- a/src/wrapt/wrappers.py +++ b/src/wrapt/wrappers.py @@ -418,7 +418,7 @@ class CallableObjectProxy(ObjectProxy): class _FunctionWrapperBase(ObjectProxy): __slots__ = ('_self_instance', '_self_wrapper', '_self_enabled', - '_self_binding', '_self_parent') + '_self_binding', '_self_parent') def __init__(self, wrapped, instance, wrapper, enabled=None, binding='function', parent=None):