Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 41587:15b810e21fe9
Get rid of all #ifdef Py_USING_UNICODE (it is always present now).
(With the help of unifdef from freshmeat.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 03 May 2007 17:49:24 +0000 |
| parents | 29ae667f3239 |
| children | 2c54763c4504 |
line wrap: on
line diff
--- a/Python/import.c Thu May 03 17:22:56 2007 +0000 +++ b/Python/import.c Thu May 03 17:49:24 2007 +0000 @@ -1256,7 +1256,6 @@ 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 @@ v = copy; } else -#endif if (!PyString_Check(v)) continue; len = PyString_GET_SIZE(v);
