Merge pull request #74 from stepshal/trailing

src/wrapt/decorators.py: remove trailing whitespace
This commit is contained in:
Graham Dumpleton 2016-06-15 19:33:38 +10:00 committed by GitHub
commit 73ab3571d7
1 changed files with 1 additions and 1 deletions

View File

@ -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: