diff options
| author | Brett Cannon <brett@python.org> | 2012-04-14 14:23:49 -0400 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2012-04-14 14:23:49 -0400 |
| commit | d23854c2d242ca58e31af9d37638e8a20d85ad58 (patch) | |
| tree | 6af7ca2441f591305a977a0f75ec19714dbd132c /Python/import.c | |
| parent | e6ecc6d13e7b3c963d6cabfdacca8138f968e970 (diff) | |
| download | cpython-d23854c2d242ca58e31af9d37638e8a20d85ad58.tar.gz | |
Undo a C99 idiom.
Diffstat (limited to 'Python/import.c')
| -rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 87c1214c7e..083146b155 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2889,12 +2889,12 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals, 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; |
