Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 76304:6cfb6fb18e1f
Undo a C99 idiom.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Sat, 14 Apr 2012 14:23:49 -0400 |
| parents | 2dd046be2c88 |
| children | c5da5a2a9262 |
line wrap: on
line diff
--- a/Python/import.c Sat Apr 14 14:10:13 2012 -0400 +++ b/Python/import.c Sat Apr 14 14:23:49 2012 -0400 @@ -2889,12 +2889,12 @@ Py_INCREF(package); if (_PyDict_GetItemId(globals, &PyId___path__) == NULL) { + PyObject *partition = NULL; PyObject *borrowed_dot = _PyUnicode_FromId(&single_dot); if (borrowed_dot == NULL) { goto error; } - PyObject *partition = PyUnicode_RPartition(package, - borrowed_dot); + partition = PyUnicode_RPartition(package, borrowed_dot); Py_DECREF(package); if (partition == NULL) { goto error;
