summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-28 19:49:49 (GMT)
committerGeorg Brandl <georg@python.org>2011-09-28 19:49:49 (GMT)
commit4cb0de246cacc2c4259f7b05529abbcf7ba8e2ff (patch)
tree35049b7aa75b2295b38e0150ecbe509b12c1830f /Python/import.c
parent5ce1b0dbc0fbad355086882ebb54f1aebc6b7163 (diff)
downloadcpython-4cb0de246cacc2c4259f7b05529abbcf7ba8e2ff.zip
cpython-4cb0de246cacc2c4259f7b05529abbcf7ba8e2ff.tar.gz
cpython-4cb0de246cacc2c4259f7b05529abbcf7ba8e2ff.tar.bz2
Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/import.c b/Python/import.c
index 4afdb70..9f38061 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1784,7 +1784,7 @@ find_module_path(PyObject *fullname, PyObject *name, PyObject *path,
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 @@ find_module_path(PyObject *fullname, PyObject *name, PyObject *path,
#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 @@ import_module_level(PyObject *name, PyObject *globals, PyObject *locals,
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");