]> granicus.if.org Git - python/commit
bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sat, 9 Dec 2017 18:00:05 +0000 (20:00 +0200)
committerGitHub <noreply@github.com>
Sat, 9 Dec 2017 18:00:05 +0000 (20:00 +0200)
commit28d8d14013ade0657fed4673f5fa3c08eb2b1944
tree4c24b73040f8f13eafd9216c934f2d27218e91d8
parenta9f8df646aac7fc94ced0aefd1ed2c8566d14d10
bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764)

* Add test for 'with (yield from lock)'
* Deprecate with statement for asyncio locks
* Document the deprecation
Doc/library/asyncio-sync.rst
Lib/asyncio/locks.py
Lib/test/test_asyncio/test_locks.py
Lib/test/test_asyncio/test_pep492.py
Misc/NEWS.d/next/Library/2017-12-09-11-30-35.bpo-32253.TQHSYF.rst [new file with mode: 0644]