summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/_concurrency_py3k.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-02-16 00:15:54 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-02-16 00:15:54 +0000
commit20213fd1f27fea51015d753bf94c6f40674ae86f (patch)
tree4084db761b0731c2c192081c1481e5240722b66f /lib/sqlalchemy/util/_concurrency_py3k.py
parentbcd4e36ab466e8e300bd704dd3b7e6e8470a2972 (diff)
parent5c6081ddb03447697f909a03572b6d6d79e61b71 (diff)
downloadsqlalchemy-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.py3
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()