summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2022-02-26 12:05:20 (GMT)
committerGitHub <noreply@github.com>2022-02-26 12:05:20 (GMT)
commitb57dbe5d1be925b99f16fe5893e339f92fc05888 (patch)
tree6b5945066300648c6757187f00c87f215eb6098c /Lib
parente466faa9df9a1bd377d9725de5484471bc4af8d0 (diff)
downloadcpython-b57dbe5d1be925b99f16fe5893e339f92fc05888.zip
cpython-b57dbe5d1be925b99f16fe5893e339f92fc05888.tar.gz
cpython-b57dbe5d1be925b99f16fe5893e339f92fc05888.tar.bz2
bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _AsyncGeneratorContextManager (GH-30233)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/contextlib.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/contextlib.py b/Lib/contextlib.py
index ee72258..4cff9c6 100644
--- a/Lib/contextlib.py
+++ b/Lib/contextlib.py
@@ -193,14 +193,6 @@ class _AsyncGeneratorContextManager(
):
"""Helper for @asynccontextmanager decorator."""
- def __call__(self, func):
- @wraps(func)
- async def inner(*args, **kwds):
- async with self.__class__(self.func, self.args, self.kwds):
- return await func(*args, **kwds)
-
- return inner
-
async def __aenter__(self):
# do not keep args and kwds alive unnecessarily
# they are only needed for recreation, which is not possible anymore