]> granicus.if.org Git - python/commitdiff
asyncio: make PY34 symbol private (rename it to _PY34)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 2 Jan 2014 17:41:34 +0000 (18:41 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 2 Jan 2014 17:41:34 +0000 (18:41 +0100)
Lib/asyncio/transports.py

index 2d2469eec29477be70a5b75a52f1860ffdd60388..67ae7fda9033b64da39a56b4a020a4925bdcdcf6 100644 (file)
@@ -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