Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 72489:dacac31460c0
Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 28 Sep 2011 21:49:49 +0200 |
| parents | 8beaa9a37387 |
| children | 1b203e741fb2 |
line wrap: on
line diff
--- a/Python/import.c Wed Sep 28 20:29:27 2011 +0200 +++ b/Python/import.c Wed Sep 28 21:49:49 2011 +0200 @@ -1784,7 +1784,7 @@ return 0; len = PyUnicode_GET_LENGTH(path_unicode); - if (!PyUnicode_AsUCS4(path_unicode, buf, PY_ARRAY_LENGTH(buf), 1)) { + if (!PyUnicode_AsUCS4(path_unicode, buf, Py_ARRAY_LENGTH(buf), 1)) { Py_DECREF(path_unicode); PyErr_Clear(); return 0; @@ -1828,7 +1828,7 @@ #endif ) buf[len++] = SEP; - if (!PyUnicode_AsUCS4(name, buf+len, PY_ARRAY_LENGTH(buf)-len, 1)) { + if (!PyUnicode_AsUCS4(name, buf+len, Py_ARRAY_LENGTH(buf)-len, 1)) { PyErr_Clear(); return 0; } @@ -2787,7 +2787,7 @@ if (PyUnicode_READY(parent_name)) return NULL; buflen = PyUnicode_GET_LENGTH(parent_name); - if (!PyUnicode_AsUCS4(parent_name, buf, PY_ARRAY_LENGTH(buf), 1)) { + if (!PyUnicode_AsUCS4(parent_name, buf, Py_ARRAY_LENGTH(buf), 1)) { Py_DECREF(parent_name); PyErr_SetString(PyExc_ValueError, "Module name too long");
