summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/proactor_events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2013-10-18 14:58:20 (GMT)
committerGuido van Rossum <guido@dropbox.com>2013-10-18 14:58:20 (GMT)
commit57497ad1810304ef74774fb1abd379dec80f458b (patch)
tree1696f5389cdad967002eff56160765936aba9010 /Lib/asyncio/proactor_events.py
parent40b22d0661c45ac350a7252a32ef665b81b1643c (diff)
downloadcpython-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/proactor_events.py')
-rw-r--r--Lib/asyncio/proactor_events.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py
index c1347b7..665569f 100644
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -94,12 +94,12 @@ class _ProactorReadPipeTransport(_ProactorBasePipeTransport,
self._paused = False
self._loop.call_soon(self._loop_reading)
- def pause(self):
- assert not self._closing, 'Cannot pause() when closing'
+ def pause_reading(self):
+ assert not self._closing, 'Cannot pause_reading() when closing'
assert not self._paused, 'Already paused'
self._paused = True
- def resume(self):
+ def resume_reading(self):
assert self._paused, 'Not paused'
self._paused = False
if self._closing: