Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc6a0f1

Browse files
Fix style (bracket placement).
1 parent acc270b commit bc6a0f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Python/import.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,15 @@ PyImport_GetModuleDict(void)
297297

298298
/* We aren't ready to do this yet.
299299
PyObject *sysdict = PyThreadState_GET()->interp->sysdict;
300-
if (sysdict == NULL)
300+
if (sysdict == NULL) {
301301
Py_FatalError("PyImport_GetModuleDict: no sys module!");
302+
}
302303
303304
_Py_IDENTIFIER(modules);
304305
PyObject *modules = _PyDict_GetItemId(sysdict, &PyId_modules);
305-
if (modules == NULL)
306+
if (modules == NULL) {
306307
Py_FatalError("lost sys.modules");
308+
}
307309
return modules;
308310
*/
309311
}
@@ -328,7 +330,6 @@ _PyImport_IsInitialized(PyInterpreterState *interp)
328330
return 1;
329331
}
330332

331-
332333
/* List of names to clear in sys */
333334
static const char * const sys_deletes[] = {
334335
"path", "argv", "ps1", "ps2",

0 commit comments

Comments
 (0)