summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-11-09 20:59:39 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-11-09 20:59:39 (GMT)
commit107b7daf5a6ce123cad4ae7d02a12ae1eadcb30b (patch)
treec81627696bb5442762dd2d7e9066e2055bd82ef1 /Python
parenta27a150ea5f946d37e51a03e345115a227816698 (diff)
downloadcpython-107b7daf5a6ce123cad4ae7d02a12ae1eadcb30b.zip
cpython-107b7daf5a6ce123cad4ae7d02a12ae1eadcb30b.tar.gz
cpython-107b7daf5a6ce123cad4ae7d02a12ae1eadcb30b.tar.bz2
Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 711cd49..1ca69b4 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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\
exit status will be one (i.e., failure).";
+#ifdef Py_USING_UNICODE
+
static PyObject *
sys_getdefaultencoding(PyObject *self)
{
@@ -176,8 +178,6 @@ static char getdefaultencoding_doc[] =
Return the current default string encoding used by the Unicode \n\
implementation.";
-#ifdef Py_USING_UNICODE
-
static PyObject *
sys_setdefaultencoding(PyObject *self, PyObject *args)
{