diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-09-11 11:20:24 +0300 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-11 01:20:24 -0700 |
commit | 7264e92b718d307cc499b2f10eab7644b00f0499 (patch) | |
tree | 7c1d18de546bd8373eeb899b8cf3824874a30dfc /Lib/asyncio/locks.py | |
parent | efd5741ae953e50a6654e04cf731da86a1307296 (diff) | |
download | cpython-git-7264e92b718d307cc499b2f10eab7644b00f0499.tar.gz |
bpo-36373: Fix deprecation warnings (GH-15889)
https://bugs.python.org/issue36373
Diffstat (limited to 'Lib/asyncio/locks.py')
-rw-r--r-- | Lib/asyncio/locks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index f63d4cedbb..d94daeb5a1 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py @@ -332,7 +332,7 @@ class Condition(_ContextManagerMixin): DeprecationWarning, stacklevel=2) if lock is None: - lock = Lock(loop=self._loop) + lock = Lock(loop=loop) elif lock._loop is not self._loop: raise ValueError("loop argument must agree with lock") |