diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-02-16 00:15:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-02-16 00:15:54 +0000 |
commit | 20213fd1f27fea51015d753bf94c6f40674ae86f (patch) | |
tree | 4084db761b0731c2c192081c1481e5240722b66f /lib/sqlalchemy/util/_concurrency_py3k.py | |
parent | bcd4e36ab466e8e300bd704dd3b7e6e8470a2972 (diff) | |
parent | 5c6081ddb03447697f909a03572b6d6d79e61b71 (diff) | |
download | sqlalchemy-20213fd1f27fea51015d753bf94c6f40674ae86f.tar.gz |
Merge "pep-484 for sqlalchemy.event; use future annotations" into main
Diffstat (limited to 'lib/sqlalchemy/util/_concurrency_py3k.py')
-rw-r--r-- | lib/sqlalchemy/util/_concurrency_py3k.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/util/_concurrency_py3k.py b/lib/sqlalchemy/util/_concurrency_py3k.py index b9e58e68c..fa2066702 100644 --- a/lib/sqlalchemy/util/_concurrency_py3k.py +++ b/lib/sqlalchemy/util/_concurrency_py3k.py @@ -157,8 +157,7 @@ class AsyncAdaptedLock: def __enter__(self): # await is used to acquire the lock only after the first calling # coroutine has created the mutex. - await_fallback(self.mutex.acquire()) - return self + return await_fallback(self.mutex.acquire()) def __exit__(self, *arg, **kw): self.mutex.release() |