commit | 7264e92b718d307cc499b2f10eab7644b00f0499 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Wed Sep 11 11:20:24 2019 +0300 |
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Wed Sep 11 01:20:24 2019 -0700 |
tree | 7c1d18de546bd8373eeb899b8cf3824874a30dfc | |
parent | efd5741ae953e50a6654e04cf731da86a1307296 [diff] [blame] |
bpo-36373: Fix deprecation warnings (GH-15889) https://bugs.python.org/issue36373
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index f63d4ce..d94daeb 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py
@@ -332,7 +332,7 @@ 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")