Issue #23456: Add missing @coroutine decorators in asyncio

This commit is contained in:
Victor Stinner 2015-03-18 11:37:42 +01:00
parent d55436ace3
commit d6dc7bdaf9
3 changed files with 5 additions and 0 deletions

View file

@ -378,6 +378,7 @@ class StreamReader:
else:
self._paused = True
@coroutine
def _wait_for_data(self, func_name):
"""Wait until feed_data() or feed_eof() is called."""
# StreamReader uses a future to link the protocol feed_data() method