]> granicus.if.org Git - python/commitdiff
Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 9 Nov 2001 20:59:39 +0000 (20:59 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 9 Nov 2001 20:59:39 +0000 (20:59 +0000)
Python/sysmodule.c

index 711cd49baab4dfb1f6a04914c4c0f9c7f8a407a9..1ca69b4da7e93b97d937dcc2842e31ebb150b1d8 100644 (file)
@@ -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)
 {