diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2021-11-01 16:34:21 +0100 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2021-11-01 16:34:21 +0100 |
| commit | baf129705a56ead40a71b1813003439e06fd1538 (patch) | |
| tree | 235d99c04758ece4d53b944e5894fe5126ce05ae /src | |
| parent | 0094c7b282a45aaa234f14b90984ccdc350dc6c5 (diff) | |
| download | python-decorator-git-baf129705a56ead40a71b1813003439e06fd1538.tar.gz | |
Fixed the ContextManager
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 7980acf..ac78479 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -313,7 +313,7 @@ class ContextManager(_GeneratorContextManager): def __call__(self, func): def caller(f, *a, **k): - with self._recreate_cm(): + with self.__class__(self.func, *self.args, **self.kwds): return f(*a, **k) return decorate(func, caller) |
