summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/_concurrency_py3k.py
diff options
context:
space:
mode:
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()