diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-09-17 14:34:51 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-09-17 14:34:51 -0400 |
commit | 204fe7ea206a1b0ab4ae248006f99afd15fa7f72 (patch) | |
tree | c612af683bca55c30b977b6361f7164c82019822 /lib/sqlalchemy/util/concurrency.py | |
parent | 5a0dcb483161eaff473fa8ab1cdfa2fa5c433f10 (diff) | |
download | sqlalchemy-204fe7ea206a1b0ab4ae248006f99afd15fa7f72.tar.gz |
vendor asynccontextmanager
while we still support python 3.6 vendor a simple version
of this for now in the one place we currently use it.
Change-Id: Ibcfc8b004b17e2ac79f9123ccb76c5eb25243f90
Diffstat (limited to 'lib/sqlalchemy/util/concurrency.py')
-rw-r--r-- | lib/sqlalchemy/util/concurrency.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/util/concurrency.py b/lib/sqlalchemy/util/concurrency.py index 463547319..5d15e06de 100644 --- a/lib/sqlalchemy/util/concurrency.py +++ b/lib/sqlalchemy/util/concurrency.py @@ -19,6 +19,7 @@ if compat.py3k: _util_async_run_coroutine_function, ) # noqa F401, E501 from ._concurrency_py3k import asyncio # noqa F401 + from ._concurrency_py3k import asynccontextmanager if not have_greenlet: @@ -57,3 +58,6 @@ if not have_greenlet: def _util_async_run_coroutine_function(fn, *arg, **kw): # noqa F81 _not_implemented() + + def asynccontextmanager(fn, *arg, **kw): # noqa F81 + _not_implemented() |