pep-538: fix some wrong backtick usage. (GH-251)

This commit is contained in:
INADA Naoki 2017-05-04 22:20:13 +09:00 committed by Nick Coghlan
parent a5d764f268
commit 1687cb26ac
1 changed files with 6 additions and 6 deletions

View File

@ -405,10 +405,10 @@ will be implemented at runtime on all platforms other than Mac OS X and Windows,
rather than attempting to determine which locales to try at compile time.
If the locale settings are changed successfully, and the ``PYTHONIOENCODING``
environment variable is currently unset, then Py_SetStandardStreamEncoding will
be called to force the standard IO streams to ``utf-8`` as the nominal text
encoding and ``surrogateescape`` as the error handler (``stderr`` will
continue to use ``backslashreplace`` as it's error handler as usual)`.
environment variable is currently unset, then ``Py_SetStandardStreamEncoding``
will be called to force the standard IO streams to ``utf-8`` as the nominal
text encoding and ``surrogateescape`` as the error handler (``stderr`` will
continue to use ``backslashreplace`` as it's error handler as usual).
When this locale coercion is activated, the following warning will be
printed on stderr, with the warning containing whichever locale was
@ -580,7 +580,7 @@ introduced in Python 3.5 ([15_]), as well as the automatic use of
``surrogateescape`` when operating in PEP 540's UTF-8 mode.
Rather than introducing yet another configuration option to address that,
this PEP proposes to use the existing ``PySettStandardStreamEncoding``
this PEP proposes to use the existing ``PySetStandardStreamEncoding``
interface to ensure that the ``surrogateescape`` handler is enabled when
the interpreter is required to make assumptions regarding the expected
filesystem encoding.
@ -757,7 +757,7 @@ applications that embed CPython as a scripting engine.
The approach proposed in this PEP handles that problem by moving the locale
coercion as early as possible in the interpreter startup sequence when running
standalone: it takes place directly in the C-level ``main()`` function, even
before calling in to the `Py_Main()`` library function that implements the
before calling in to the ``Py_Main()`` library function that implements the
features of the CPython interpreter CLI.
The ``Py_Initialize`` API then only gains an explicit warning (emitted on