Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 83619:97b7bd87c44c
#17115: I hate you MS for not supporting C99.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Sat, 04 May 2013 17:37:09 -0400 |
| parents | 0b34fd75b937 |
| children | 6f4627a65c0a |
line wrap: on
line diff
--- a/Python/pythonrun.c Sat May 04 17:29:36 2013 -0400 +++ b/Python/pythonrun.c Sat May 04 17:37:09 2013 -0400 @@ -843,7 +843,7 @@ static void initmain(PyInterpreterState *interp) { - PyObject *m, *d; + PyObject *m, *d, *loader; m = PyImport_AddModule("__main__"); if (m == NULL) Py_FatalError("can't create __main__ module"); @@ -864,7 +864,7 @@ * be set if __main__ gets further initialized later in the startup * process. */ - PyObject *loader = PyDict_GetItemString(d, "__loader__"); + loader = PyDict_GetItemString(d, "__loader__"); if (loader == NULL || loader == Py_None) { PyObject *loader = PyObject_GetAttrString(interp->importlib, "BuiltinImporter");
