bpo-38066: Hide internal Stream methods (GH-15762)

feed_eof(), feed_data(), set_exception(), and set_transport() are prefixed with underscore now.


https://bugs.python.org/issue38066
This commit is contained in:
Andrew Svetlov 2019-09-10 15:56:14 +03:00 committed by Miss Islington (bot)
parent 9a94093189
commit 12c122ae95
5 changed files with 155 additions and 92 deletions

View file

@ -98,8 +98,8 @@ class StreamReaderTests(BaseTest):
stream = asyncio.Stream(mode=asyncio.StreamMode.READ,
loop=self.loop,
_asyncio_internal=True)
stream.feed_data(DATA)
stream.feed_eof()
stream._feed_data(DATA)
stream._feed_eof()
async def reader():
data = []