mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: Sync with github
This commit is contained in:
parent
5e58600c42
commit
dddc781998
2 changed files with 5 additions and 2 deletions
|
@ -494,6 +494,9 @@ class StreamReader:
|
|||
|
||||
@coroutine
|
||||
def readexactly(self, n):
|
||||
if n < 0:
|
||||
raise ValueError('readexactly size can not be less than zero')
|
||||
|
||||
if self._exception is not None:
|
||||
raise self._exception
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue