summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-11-09 20:59:39 +0000
committerMartin v. Löwis <martin@v.loewis.de>2001-11-09 20:59:39 +0000
commitdbdb736c238f15c7edb736b0c80e088f6d9554ef (patch)
tree8e206ecc44e38bf87699c909ff0ec85739b145b5 /Python/sysmodule.c
parent4955636cfa503772018f0096a4d63ca579f0de57 (diff)
downloadcpython-dbdb736c238f15c7edb736b0c80e088f6d9554ef.tar.gz
Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 711cd49baa..1ca69b4da7 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)
{