Commit 740fce0e authored by Brett Cannon's avatar Brett Cannon

Undo a C99 idiom.

parent fd074155
...@@ -2889,12 +2889,12 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals, ...@@ -2889,12 +2889,12 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *given_globals,
Py_INCREF(package); Py_INCREF(package);
if (_PyDict_GetItemId(globals, &PyId___path__) == NULL) { if (_PyDict_GetItemId(globals, &PyId___path__) == NULL) {
PyObject *partition = NULL;
PyObject *borrowed_dot = _PyUnicode_FromId(&single_dot); PyObject *borrowed_dot = _PyUnicode_FromId(&single_dot);
if (borrowed_dot == NULL) { if (borrowed_dot == NULL) {
goto error; goto error;
} }
PyObject *partition = PyUnicode_RPartition(package, partition = PyUnicode_RPartition(package, borrowed_dot);
borrowed_dot);
Py_DECREF(package); Py_DECREF(package);
if (partition == NULL) { if (partition == NULL) {
goto error; goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment