mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Fix tabs.
This commit is contained in:
parent
afae11ea88
commit
3c0fd5616f
1 changed files with 12 additions and 12 deletions
|
@ -229,14 +229,14 @@ Py_InitializeEx(int install_sigs)
|
||||||
if (install_sigs)
|
if (install_sigs)
|
||||||
initsigs(); /* Signal handling stuff, including initintr() */
|
initsigs(); /* Signal handling stuff, including initintr() */
|
||||||
|
|
||||||
/* Initialize warnings. */
|
/* Initialize warnings. */
|
||||||
_PyWarnings_Init();
|
_PyWarnings_Init();
|
||||||
if (PySys_HasWarnOptions()) {
|
if (PySys_HasWarnOptions()) {
|
||||||
PyObject *warnings_module = PyImport_ImportModule("warnings");
|
PyObject *warnings_module = PyImport_ImportModule("warnings");
|
||||||
if (!warnings_module)
|
if (!warnings_module)
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
Py_XDECREF(warnings_module);
|
Py_XDECREF(warnings_module);
|
||||||
}
|
}
|
||||||
|
|
||||||
initmain(); /* Module __main__ */
|
initmain(); /* Module __main__ */
|
||||||
if (!Py_NoSiteFlag)
|
if (!Py_NoSiteFlag)
|
||||||
|
@ -1126,7 +1126,7 @@ PyErr_PrintEx(int set_sys_last_vars)
|
||||||
PyErr_NormalizeException(&exception, &v, &tb);
|
PyErr_NormalizeException(&exception, &v, &tb);
|
||||||
if (exception == NULL)
|
if (exception == NULL)
|
||||||
return;
|
return;
|
||||||
/* Now we know v != NULL too */
|
/* Now we know v != NULL too */
|
||||||
if (set_sys_last_vars) {
|
if (set_sys_last_vars) {
|
||||||
PySys_SetObject("last_type", exception);
|
PySys_SetObject("last_type", exception);
|
||||||
PySys_SetObject("last_value", v);
|
PySys_SetObject("last_value", v);
|
||||||
|
@ -1861,14 +1861,14 @@ PyRun_AnyFileFlags(FILE *fp, const char *name, PyCompilerFlags *flags)
|
||||||
PyAPI_FUNC(PyObject *)
|
PyAPI_FUNC(PyObject *)
|
||||||
PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l)
|
PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l)
|
||||||
{
|
{
|
||||||
return PyRun_FileExFlags(fp, p, s, g, l, 0, NULL);
|
return PyRun_FileExFlags(fp, p, s, g, l, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_FileEx
|
#undef PyRun_FileEx
|
||||||
PyAPI_FUNC(PyObject *)
|
PyAPI_FUNC(PyObject *)
|
||||||
PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c)
|
PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c)
|
||||||
{
|
{
|
||||||
return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
|
return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_FileFlags
|
#undef PyRun_FileFlags
|
||||||
|
@ -1876,7 +1876,7 @@ PyAPI_FUNC(PyObject *)
|
||||||
PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l,
|
PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l,
|
||||||
PyCompilerFlags *flags)
|
PyCompilerFlags *flags)
|
||||||
{
|
{
|
||||||
return PyRun_FileExFlags(fp, p, s, g, l, 0, flags);
|
return PyRun_FileExFlags(fp, p, s, g, l, 0, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_SimpleFile
|
#undef PyRun_SimpleFile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue