mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Rename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout in test_call_later().
This commit is contained in:
parent
40b22d0661
commit
57497ad181
10 changed files with 33 additions and 33 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue