diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2015-07-19 19:13:36 +0200 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2015-07-19 19:13:36 +0200 |
| commit | a4e7a82790a134ca44746de88bdc0354e90c442c (patch) | |
| tree | 471fc9c4775b2a3660148e4a0c77acb58bbee788 /src | |
| parent | cf20ab367249c9eca473d6f9989f0721e451b033 (diff) | |
| download | python-decorator-git-a4e7a82790a134ca44746de88bdc0354e90c442c.tar.gz | |
Simplified the concurrency example by using a Future class
Diffstat (limited to 'src')
| -rw-r--r-- | src/decorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decorator.py b/src/decorator.py index 81fe389..ed5c6e0 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -217,7 +217,7 @@ def decorator(caller, _func=None): if _func is not None: # return a decorated function # this is obsolete behavior; you should use decorate instead return decorate(caller, _func) - # else return a decorator + # else return a decorator function if inspect.isclass(caller): name = caller.__name__.lower() callerfunc = get_init(caller) |
