summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/unix_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-14 23:05:18 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-14 23:05:18 (GMT)
commit93e42c03b78fdb6b51153e5825ab9dc9f90b5e16 (patch)
treec9573bfd60c30ce8f92f20ebc6746f58861371cc /Lib/asyncio/unix_events.py
parent24be20ac1c396a961d5546d3a641fbcc0bc8108b (diff)
parent29ad0111bd8c7edd049c964c66cfb9e9114c99d2 (diff)
downloadcpython-93e42c03b78fdb6b51153e5825ab9dc9f90b5e16.zip
cpython-93e42c03b78fdb6b51153e5825ab9dc9f90b5e16.tar.gz
cpython-93e42c03b78fdb6b51153e5825ab9dc9f90b5e16.tar.bz2
Merge 3.4 (asyncio)
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r--Lib/asyncio/unix_events.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
index 1a4d418..14b4843 100644
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -301,7 +301,12 @@ class _UnixReadPipeTransport(transports.ReadTransport):
self._loop.call_soon(waiter._set_result_unless_cancelled, None)
def __repr__(self):
- info = [self.__class__.__name__, 'fd=%s' % self._fileno]
+ info = [self.__class__.__name__]
+ if self._pipe is None:
+ info.append('closed')
+ elif self._closing:
+ info.append('closing')
+ info.append('fd=%s' % self._fileno)
if self._pipe is not None:
polling = selector_events._test_selector_event(
self._loop._selector,
@@ -404,7 +409,12 @@ class _UnixWritePipeTransport(transports._FlowControlMixin,
self._loop.call_soon(waiter._set_result_unless_cancelled, None)
def __repr__(self):
- info = [self.__class__.__name__, 'fd=%s' % self._fileno]
+ info = [self.__class__.__name__]
+ if self._pipe is None:
+ info.append('closed')
+ elif self._closing:
+ info.append('closing')
+ info.append('fd=%s' % self._fileno)
if self._pipe is not None:
polling = selector_events._test_selector_event(
self._loop._selector,