mirror of https://github.com/python/cpython
Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.
This commit is contained in:
parent
a27a150ea5
commit
107b7daf5a
|
@ -164,6 +164,8 @@ If the status numeric, it will be used as the system exit status.\n\
|
||||||
If it is another kind of object, it will be printed and the system\n\
|
If it is another kind of object, it will be printed and the system\n\
|
||||||
exit status will be one (i.e., failure).";
|
exit status will be one (i.e., failure).";
|
||||||
|
|
||||||
|
#ifdef Py_USING_UNICODE
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
sys_getdefaultencoding(PyObject *self)
|
sys_getdefaultencoding(PyObject *self)
|
||||||
{
|
{
|
||||||
|
@ -176,8 +178,6 @@ static char getdefaultencoding_doc[] =
|
||||||
Return the current default string encoding used by the Unicode \n\
|
Return the current default string encoding used by the Unicode \n\
|
||||||
implementation.";
|
implementation.";
|
||||||
|
|
||||||
#ifdef Py_USING_UNICODE
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
sys_setdefaultencoding(PyObject *self, PyObject *args)
|
sys_setdefaultencoding(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue