diff options
| author | Guido van Rossum <guido@dropbox.com> | 2013-10-18 14:58:20 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@dropbox.com> | 2013-10-18 14:58:20 (GMT) |
| commit | 57497ad1810304ef74774fb1abd379dec80f458b (patch) | |
| tree | 1696f5389cdad967002eff56160765936aba9010 /Lib/asyncio/streams.py | |
| parent | 40b22d0661c45ac350a7252a32ef665b81b1643c (diff) | |
| download | cpython-57497ad1810304ef74774fb1abd379dec80f458b.zip cpython-57497ad1810304ef74774fb1abd379dec80f458b.tar.gz cpython-57497ad1810304ef74774fb1abd379dec80f458b.tar.bz2 | |
Rename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout in test_call_later().
Diffstat (limited to 'Lib/asyncio/streams.py')
| -rw-r--r-- | Lib/asyncio/streams.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py index d0f12e8..9915aa5 100644 --- a/Lib/asyncio/streams.py +++ b/Lib/asyncio/streams.py @@ -106,7 +106,7 @@ class StreamReader: def _maybe_resume_transport(self): if self._paused and self.byte_count <= self.limit: self._paused = False - self._transport.resume() + self._transport.resume_reading() def feed_eof(self): self.eof = True @@ -133,7 +133,7 @@ class StreamReader: not self._paused and self.byte_count > 2*self.limit): try: - self._transport.pause() + self._transport.pause_reading() except NotImplementedError: # The transport can't be paused. # We'll just have to buffer all data. |
