mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Undo a C99 idiom.
This commit is contained in:
parent
fd0741555b
commit
740fce0e38
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue