diff options
author | Brett Cannon <brett@python.org> | 2012-04-14 18:23:49 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-14 18:23:49 (GMT) |
commit | 740fce0e389027e76f990fc4f1a14fe6cc9cc6b0 (patch) | |
tree | 0ff9b7282404d95e2c76866fda25f268f8a9c319 /Python/import.c | |
parent | fd0741555b733f66c0a35c698d0cac5e73010ae0 (diff) | |
download | cpython-740fce0e389027e76f990fc4f1a14fe6cc9cc6b0.zip cpython-740fce0e389027e76f990fc4f1a14fe6cc9cc6b0.tar.gz cpython-740fce0e389027e76f990fc4f1a14fe6cc9cc6b0.tar.bz2 |
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 87c1214..083146b 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; |