[Python-checkins] cpython (3.5): #25916: fix a few 'string of bytes' references.

r.david.murray python-checkins at python.org
Tue Aug 23 20:44:48 EDT 2016


https://hg.python.org/cpython/rev/7ac8e8568da2
changeset:   102879:7ac8e8568da2
branch:      3.5
parent:      102867:355fa8bd8d9d
user:        R David Murray <rdmurray at bitdance.com>
date:        Tue Aug 23 20:43:56 2016 -0400
summary:
  #25916: fix a few 'string of bytes' references.

Patch by SilengGhost.

files:
  Doc/howto/unicode.rst          |  2 +-
  Doc/library/logging.config.rst |  2 +-
  Doc/library/sunau.rst          |  2 +-
  Doc/library/wave.rst           |  2 +-
  4 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst
--- a/Doc/howto/unicode.rst
+++ b/Doc/howto/unicode.rst
@@ -192,7 +192,7 @@
 UTF-8 has several convenient properties:
 
 1. It can handle any Unicode code point.
-2. A Unicode string is turned into a string of bytes containing no embedded zero
+2. A Unicode string is turned into a sequence of bytes containing no embedded zero
    bytes.  This avoids byte-ordering issues, and means UTF-8 strings can be
    processed by C functions such as ``strcpy()`` and sent through protocols that
    can't handle zero bytes.
diff --git a/Doc/library/logging.config.rst b/Doc/library/logging.config.rst
--- a/Doc/library/logging.config.rst
+++ b/Doc/library/logging.config.rst
@@ -144,7 +144,7 @@
    (perhaps if decryption were performed).
 
    To send a configuration to the socket, read in the configuration file and
-   send it to the socket as a string of bytes preceded by a four-byte length
+   send it to the socket as a sequence of bytes preceded by a four-byte length
    string packed in binary using ``struct.pack('>L', n)``.
 
    .. note::
diff --git a/Doc/library/sunau.rst b/Doc/library/sunau.rst
--- a/Doc/library/sunau.rst
+++ b/Doc/library/sunau.rst
@@ -158,7 +158,7 @@
 
 .. method:: AU_read.readframes(n)
 
-   Reads and returns at most *n* frames of audio, as a string of bytes.  The data
+   Reads and returns at most *n* frames of audio, as a :class:`bytes` object.  The data
    will be returned in linear format.  If the original data is in u-LAW format, it
    will be converted.
 
diff --git a/Doc/library/wave.rst b/Doc/library/wave.rst
--- a/Doc/library/wave.rst
+++ b/Doc/library/wave.rst
@@ -112,7 +112,7 @@
 
 .. method:: Wave_read.readframes(n)
 
-   Reads and returns at most *n* frames of audio, as a string of bytes.
+   Reads and returns at most *n* frames of audio, as a :class:`bytes` object.
 
 
 .. method:: Wave_read.rewind()

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


More information about the Python-checkins mailing list