cpython: c7fdb0637d0b (original) (raw)

Mercurial > cpython

changeset 85673:c7fdb0637d0b

Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional. [#18818]

Serhiy Storchaka storchaka@gmail.com
date Fri, 13 Sep 2013 11:46:24 +0300
parents b85c9d2a5227
children c902ceaf7825
files Doc/using/cmdline.rst Lib/test/test_sys.py Misc/NEWS Python/pythonrun.c
diffstat 4 files changed, 56 insertions(+), 11 deletions(-)[+] [-] Doc/using/cmdline.rst 9 Lib/test/test_sys.py 36 Misc/NEWS 2 Python/pythonrun.c 20

line wrap: on

line diff

--- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -538,13 +538,16 @@ conflict. .. envvar:: PYTHONIOENCODING If this is set before running the interpreter, it overrides the encoding used

+ .. envvar:: PYTHONNOUSERSITE

--- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -544,6 +544,42 @@ class SysModuleTest(unittest.TestCase): out = p.communicate()[0].strip() self.assertEqual(out, b'?')

+

+

+

+

+ @unittest.skipIf(sys.base_prefix != sys.prefix, 'Test is not venv-compatible') def test_executable(self):

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -7,6 +7,8 @@ Projected Release date: 2013-09-29 Core and Builtins ----------------- +- Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional. + Library -------

--- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1056,7 +1056,7 @@ initstdio(void) PyObject *std = NULL; int status = 0, fd; PyObject * encoding_attr;

/* Hack to avoid a nasty recursion issue when Python is invoked in verbose mode: pre-import the Latin-1 and UTF-8 codecs */ @@ -1088,19 +1088,23 @@ initstdio(void) } Py_DECREF(wrapper);