]> granicus.if.org Git - python/commit
bpo-33584: Fix several minor bugs in asyncio. (GH-7003)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 20 May 2018 13:30:31 +0000 (16:30 +0300)
committerGitHub <noreply@github.com>
Sun, 20 May 2018 13:30:31 +0000 (16:30 +0300)
commit6655354afcd116c27486bb5ba1dfa50b369d8d85
treea4c2dafd327bc7b1033695108b5bc86c5383145c
parent4151061855b571bf8a7579daa7875b8e243057b9
bpo-33584: Fix several minor bugs in asyncio. (GH-7003)

Fix the following bugs in the C implementation:

* get_future_loop() silenced all exceptions raised when look up the get_loop
  attribute, not just an AttributeError.
* enter_task() silenced all exceptions raised when look up the current task,
  not just a KeyError.
* repr() was called for a borrowed link in enter_task() and task_step_impl().
* str() was used instead of repr() in formatting one error message (in
  Python implementation too).
* There where few reference leaks in error cases.
Lib/asyncio/tasks.py
Modules/_asynciomodule.c