summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-02 17:41:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-02 17:41:34 (GMT)
commit6f055e73df0846dcfed12704db9d17098f03d652 (patch)
tree8e7e5b69d491831d657e85aa259138dd8dcbd77e
parent1b02da95d21c31ab94b98995a417ecb5d085d976 (diff)
downloadcpython-6f055e73df0846dcfed12704db9d17098f03d652.zip
cpython-6f055e73df0846dcfed12704db9d17098f03d652.tar.gz
cpython-6f055e73df0846dcfed12704db9d17098f03d652.tar.bz2
asyncio: make PY34 symbol private (rename it to _PY34)
-rw-r--r--Lib/asyncio/transports.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
index 2d2469e..67ae7fd 100644
--- a/Lib/asyncio/transports.py
+++ b/Lib/asyncio/transports.py
@@ -2,7 +2,7 @@
import sys
-PY34 = sys.version_info >= (3, 4)
+_PY34 = sys.version_info >= (3, 4)
__all__ = ['BaseTransport', 'ReadTransport', 'WriteTransport',
'Transport', 'DatagramTransport', 'SubprocessTransport',
@@ -94,7 +94,7 @@ class WriteTransport(BaseTransport):
The default implementation concatenates the arguments and
calls write() on the result.
"""
- if not PY34:
+ if not _PY34:
# In Python 3.3, bytes.join() doesn't handle memoryview.
list_of_data = (
bytes(data) if isinstance(data, memoryview) else data