asyncio: Sync with github

This commit is contained in:
Yury Selivanov 2015-12-11 11:32:59 -05:00
parent 5e58600c42
commit dddc781998
2 changed files with 5 additions and 2 deletions

View file

@ -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