]> granicus.if.org Git - python/commit
bpo-34728: Remove deprecate *loop* argument in asyncio.sleep (GH-9415)
authorJoão Júnior <joaojunior.ma@gmail.com>
Mon, 24 Sep 2018 09:51:22 +0000 (06:51 -0300)
committerCarol Willing <carolcode@willingconsulting.com>
Mon, 24 Sep 2018 09:51:22 +0000 (05:51 -0400)
commit558c49bcf3a8543d64a68de836b5d855efd56696
tree933e87600d6e381d6c836aa81f1f168d52966919
parenta0fd7f1b55a1d76842fa2c6b5777a39cdcf2bb5e
bpo-34728: Remove deprecate *loop* argument in asyncio.sleep (GH-9415)

* Insert the warn in the asyncio.sleep when the loop argument is used

* Insert the warn in the asyncio.wait and asyncio.wait_for when the loop argument is used

* Better format of the code

* Add news file

* change calls for get_event_loop() to calls for get_running_loop()

* Change message to be more clear in News

* Improve the comments in test_tasks
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_tasks.py
Misc/NEWS.d/next/Library/2018-09-20-16-55-43.bpo-34728.CUE8LU.rst [new file with mode: 0644]