summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-03 17:49:24 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-03 17:49:24 (GMT)
commit8d30cc0144a6a94e06f3a115b07afa6314466cfd (patch)
tree0c0b2f3d75cca4173ec3e8e2962682affbd2e886 /Python/import.c
parent938ef57e267838dcfbfb0d51d9bd40caece1c5db (diff)
downloadcpython-8d30cc0144a6a94e06f3a115b07afa6314466cfd.zip
cpython-8d30cc0144a6a94e06f3a115b07afa6314466cfd.tar.gz
cpython-8d30cc0144a6a94e06f3a115b07afa6314466cfd.tar.bz2
Get rid of all #ifdef Py_USING_UNICODE (it is always present now).
(With the help of unifdef from freshmeat.)
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 6d742b9..7e3d2f4 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1256,7 +1256,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
PyObject *v = PyList_GetItem(path, i);
if (!v)
return NULL;
-#ifdef Py_USING_UNICODE
if (PyUnicode_Check(v)) {
copy = PyUnicode_Encode(PyUnicode_AS_UNICODE(v),
PyUnicode_GET_SIZE(v), Py_FileSystemDefaultEncoding, NULL);
@@ -1265,7 +1264,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
v = copy;
}
else
-#endif
if (!PyString_Check(v))
continue;
len = PyString_GET_SIZE(v);