diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-20 14:33:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-20 14:33:55 (GMT) |
commit | 49418f6df7a234243a470260e1b59e9e4c0e4768 (patch) | |
tree | c8f146497200c743ee61942df18c3212d92645c6 /Lib/asyncio/tasks.py | |
parent | 10a122c0d55b01b053126ef3fd4d9e05ab8f2372 (diff) | |
download | cpython-49418f6df7a234243a470260e1b59e9e4c0e4768.zip cpython-49418f6df7a234243a470260e1b59e9e4c0e4768.tar.gz cpython-49418f6df7a234243a470260e1b59e9e4c0e4768.tar.bz2 |
[3.6] bpo-33584: Fix several minor bugs in asyncio. (GH-7003) (#7006)
* repr() was called for a borrowed link.
* str() was used instead of repr() in formatting one error message.
(cherry picked from commit 6655354afcd116c27486bb5ba1dfa50b369d8d85)
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r-- | Lib/asyncio/tasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 9fe2a2f..a294dfb 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -233,7 +233,7 @@ class Task(futures.Future): self._step, RuntimeError( 'yield was used instead of yield from for ' - 'generator in task {!r} with {}'.format( + 'generator in task {!r} with {!r}'.format( self, result))) else: # Yielding something else is an error. |