mirror of https://github.com/python/cpython
Small grammar fixes by Mark Summerfield.
This commit is contained in:
parent
951138c795
commit
ff962c5f1f
|
@ -313,23 +313,23 @@ codecs
|
||||||
------
|
------
|
||||||
|
|
||||||
The :mod:`~encodings.mbcs` codec has be rewritten to handle correclty
|
The :mod:`~encodings.mbcs` codec has be rewritten to handle correclty
|
||||||
``replace`` and ``ignore`` error handlers on all Windows versions. The
|
``replace`` and ``ignore`` error handlers on all Windows versions. The
|
||||||
:mod:`~encodings.mbcs` codec is now supporting all error handlers, instead of
|
:mod:`~encodings.mbcs` codec now supports all error handlers, instead of only
|
||||||
only ``replace`` to encode and ``ignore`` to decode.
|
``replace`` to encode and ``ignore`` to decode.
|
||||||
|
|
||||||
A new Windows-only codec has been added: ``cp65001`` (:issue:`13216`). It is
|
A new Windows-only codec has been added: ``cp65001`` (:issue:`13216`). It is the
|
||||||
the Windows code page 65001 (Windows UTF-8, ``CP_UTF8``). For example, it is
|
Windows code page 65001 (Windows UTF-8, ``CP_UTF8``). For example, it is used
|
||||||
used by ``sys.stdout`` if the console output code page is set to cp65001 (e.g.
|
by ``sys.stdout`` if the console output code page is set to cp65001 (e.g., using
|
||||||
using ``chcp 65001`` command).
|
``chcp 65001`` command).
|
||||||
|
|
||||||
Multibyte CJK decoders now resynchronize faster. They only ignore the first
|
Multibyte CJK decoders now resynchronize faster. They only ignore the first
|
||||||
byte of an invalid byte sequence. For example, ``b'\xff\n'.decode('gb2312',
|
byte of an invalid byte sequence. For example, ``b'\xff\n'.decode('gb2312',
|
||||||
'replace')`` now returns a ``\n`` after the replacement character.
|
'replace')`` now returns a ``\n`` after the replacement character.
|
||||||
|
|
||||||
(:issue:`12016`)
|
(:issue:`12016`)
|
||||||
|
|
||||||
Don't reset incremental encoders of CJK codecs at each call to their encode()
|
Incremental CJK codec encoders are no longer reset at each call to their
|
||||||
method anymore. For example::
|
encode() methods. For example::
|
||||||
|
|
||||||
$ ./python -q
|
$ ./python -q
|
||||||
>>> import codecs
|
>>> import codecs
|
||||||
|
|
Loading…
Reference in New Issue