summaryrefslogtreecommitdiff
path: root/Lib/asyncio/streams.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-11-16 12:43:35 -0500
committerYury Selivanov <yselivanov@sprymix.com>2015-11-16 12:43:35 -0500
commit1334f83de2e20829118226306147e05cdb8f2725 (patch)
treea5f2c0f33627af95d4c8481dfc3ea308553ccb23 /Lib/asyncio/streams.py
parenta27a1e576e994a1fc6f194474dd63f1b20c0d2d4 (diff)
parent5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c (diff)
downloadcpython-git-1334f83de2e20829118226306147e05cdb8f2725.tar.gz
Merge 3.4
Diffstat (limited to 'Lib/asyncio/streams.py')
-rw-r--r--Lib/asyncio/streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index 64d10203d2..6b5e96aea2 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -302,7 +302,7 @@ class StreamWriter:
if exc is not None:
raise exc
if self._transport is not None:
- if self._transport._closing:
+ if self._transport.is_closing():
# Yield to the event loop so connection_lost() may be
# called. Without this, _drain_helper() would return
# immediately, and code that calls