mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
9a94093189
commit
12c122ae95
5 changed files with 155 additions and 92 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue