diff options
author | Walter Dörwald <walter@livinglogic.de> | 2002-11-21 20:18:46 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2002-11-21 20:18:46 (GMT) |
commit | 3b918c3787583aca1563a4f9f26371983c4bc388 (patch) | |
tree | 539922b66c0913005745efa0dc7945a6771cce43 | |
parent | 4c6c76559d0ff340fec8b665f49500784513dbd3 (diff) | |
download | cpython-3b918c3787583aca1563a4f9f26371983c4bc388.zip cpython-3b918c3787583aca1563a4f9f26371983c4bc388.tar.gz cpython-3b918c3787583aca1563a4f9f26371983c4bc388.tar.bz2 |
Comment out the getcwdu implementation for --disable-unicode builds
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 9dc1d05..04a0611 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1250,6 +1250,7 @@ posix_getcwd(PyObject *self, PyObject *args) return PyString_FromString(buf); } +#ifdef Py_USING_UNICODE PyDoc_STRVAR(posix_getcwdu__doc__, "getcwdu() -> path\n\n\ Return a unicode string representing the current working directory."); @@ -1287,6 +1288,7 @@ posix_getcwdu(PyObject *self, PyObject *args) return PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,"strict"); } #endif +#endif #ifdef HAVE_LINK @@ -6855,8 +6857,10 @@ static PyMethodDef posix_methods[] = { #endif #ifdef HAVE_GETCWD {"getcwd", posix_getcwd, METH_VARARGS, posix_getcwd__doc__}, +#ifdef Py_USING_UNICODE {"getcwdu", posix_getcwdu, METH_VARARGS, posix_getcwdu__doc__}, #endif +#endif #ifdef HAVE_LINK {"link", posix_link, METH_VARARGS, posix_link__doc__}, #endif /* HAVE_LINK */ |