Skip to content

Commit bc661bc

Browse files
Update Doc/library/codecs.rst
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 171869f commit bc661bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/codecs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ will always have to swap bytes on encoding and decoding.
994994
Python's ``UTF-32`` codec avoids this problem by using the platform's native byte
995995
order when no BOM is present. The plain ``UTF-16`` codec (without a ``-BE`` or
996996
``-LE`` suffix) behaves the same way. Python follows prevailing platform
997-
practice so native-endian data round-trips without redundant byte swapping,
997+
practice, so native-endian data round-trips without redundant byte swapping,
998998
even though the Unicode Standard defaults to big-endian when the byte order is
999999
unspecified. When these bytes are read by a CPU with a different endianness,
10001000
then bytes have to be swapped though. To be able to detect the endianness of a

0 commit comments

Comments
 (0)