diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-11 16:33:08 (GMT) |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-11 16:33:08 (GMT) |
| commit | 7888e6702776c0e619fbf10857534fc18b0d1a1a (patch) | |
| tree | 24908690841f174c3c3f1a7e5e4a9aabbe13b54e /Lib/asyncio/streams.py | |
| parent | 5cf791b0357f7def78dd8190b3544ac4d44d28f9 (diff) | |
| parent | dddc781998da741511178c7cb4e303e3db5aac45 (diff) | |
| download | cpython-7888e6702776c0e619fbf10857534fc18b0d1a1a.zip cpython-7888e6702776c0e619fbf10857534fc18b0d1a1a.tar.gz cpython-7888e6702776c0e619fbf10857534fc18b0d1a1a.tar.bz2 | |
Merge 3.4
Diffstat (limited to 'Lib/asyncio/streams.py')
| -rw-r--r-- | Lib/asyncio/streams.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py index 6b5e96a..9097e38 100644 --- a/Lib/asyncio/streams.py +++ b/Lib/asyncio/streams.py @@ -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 |
