Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48de282

Browse files
committed
#25916: fix a few 'string of bytes' references.
Patch by SilengGhost.
1 parent efa798d commit 48de282

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/howto/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ frequently used than UTF-8.) UTF-8 uses the following rules:
192192
UTF-8 has several convenient properties:
193193

194194
1. It can handle any Unicode code point.
195-
2. A Unicode string is turned into a string of bytes containing no embedded zero
195+
2. A Unicode string is turned into a sequence of bytes containing no embedded zero
196196
bytes. This avoids byte-ordering issues, and means UTF-8 strings can be
197197
processed by C functions such as ``strcpy()`` and sent through protocols that
198198
can't handle zero bytes.

Doc/library/logging.config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in
144144
(perhaps if decryption were performed).
145145

146146
To send a configuration to the socket, read in the configuration file and
147-
send it to the socket as a string of bytes preceded by a four-byte length
147+
send it to the socket as a sequence of bytes preceded by a four-byte length
148148
string packed in binary using ``struct.pack('>L', n)``.
149149

150150
.. note::

Doc/library/sunau.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ AU_read objects, as returned by :func:`.open` above, have the following methods:
158158

159159
.. method:: AU_read.readframes(n)
160160

161-
Reads and returns at most *n* frames of audio, as a string of bytes. The data
161+
Reads and returns at most *n* frames of audio, as a :class:`bytes` object. The data
162162
will be returned in linear format. If the original data is in u-LAW format, it
163163
will be converted.
164164

Doc/library/wave.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Wave_read objects, as returned by :func:`.open`, have the following methods:
112112

113113
.. method:: Wave_read.readframes(n)
114114

115-
Reads and returns at most *n* frames of audio, as a string of bytes.
115+
Reads and returns at most *n* frames of audio, as a :class:`bytes` object.
116116

117117

118118
.. method:: Wave_read.rewind()

0 commit comments

Comments
 (0)