diff Python/sysmodule.c @ 20943:e4d380f5f297 legacy-trunk

Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.
author Martin v. Löwis <martin@v.loewis.de>
date Fri, 09 Nov 2001 20:59:39 +0000
parents 7344687bf2c0
children 47f6533674fd
line wrap: on
line diff
--- a/Python/sysmodule.c	Fri Nov 09 20:59:14 2001 +0000
+++ b/Python/sysmodule.c	Fri Nov 09 20:59:39 2001 +0000
@@ -164,6 +164,8 @@
 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 @@
 Return the current default string encoding used by the Unicode \n\
 implementation.";
 
-#ifdef Py_USING_UNICODE
-
 static PyObject *
 sys_setdefaultencoding(PyObject *self, PyObject *args)
 {