diff options
author | João Júnior <joaojunior.ma@gmail.com> | 2018-09-24 09:51:22 (GMT) |
---|---|---|
committer | Carol Willing <carolcode@willingconsulting.com> | 2018-09-24 09:51:22 (GMT) |
commit | 558c49bcf3a8543d64a68de836b5d855efd56696 (patch) | |
tree | 933e87600d6e381d6c836aa81f1f168d52966919 /Misc | |
parent | a0fd7f1b55a1d76842fa2c6b5777a39cdcf2bb5e (diff) | |
download | cpython-558c49bcf3a8543d64a68de836b5d855efd56696.zip cpython-558c49bcf3a8543d64a68de836b5d855efd56696.tar.gz cpython-558c49bcf3a8543d64a68de836b5d855efd56696.tar.bz2 |
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
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-09-20-16-55-43.bpo-34728.CUE8LU.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-09-20-16-55-43.bpo-34728.CUE8LU.rst b/Misc/NEWS.d/next/Library/2018-09-20-16-55-43.bpo-34728.CUE8LU.rst new file mode 100644 index 0000000..e06eb0f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-09-20-16-55-43.bpo-34728.CUE8LU.rst @@ -0,0 +1,2 @@ +Add deprecation warning when `loop` is used in methods: `asyncio.sleep`, +`asyncio.wait` and `asyncio.wait_for`. |