[Python-checkins] cpython: asyncio: make PY34 symbol private (rename it to _PY34)

victor.stinner python-checkins at python.org
Fri Jan 3 03:27:02 CET 2014


http://hg.python.org/cpython/rev/584870f6d3d1
changeset:   88266:584870f6d3d1
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Jan 02 18:41:34 2014 +0100
summary:
  asyncio: make PY34 symbol private (rename it to _PY34)

files:
  Lib/asyncio/transports.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
--- 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 @@
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list