mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
Trimmed trailing whitespace.
This commit is contained in:
parent
1df5c3961c
commit
216b78bdaa
1 changed files with 20 additions and 20 deletions
|
@ -457,16 +457,16 @@ sys_settscdump(PyObject *self, PyObject *args)
|
||||||
tstate->interp->tscdump = 0;
|
tstate->interp->tscdump = 0;
|
||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
return Py_None;
|
return Py_None;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(settscdump_doc,
|
PyDoc_STRVAR(settscdump_doc,
|
||||||
"settscdump(bool)\n\
|
"settscdump(bool)\n\
|
||||||
\n\
|
\n\
|
||||||
If true, tell the Python interpreter to dump VM measurements to\n\
|
If true, tell the Python interpreter to dump VM measurements to\n\
|
||||||
stderr. If false, turn off dump. The measurements are based on the\n\
|
stderr. If false, turn off dump. The measurements are based on the\n\
|
||||||
processor's time-stamp counter."
|
processor's time-stamp counter."
|
||||||
);
|
);
|
||||||
#endif /* TSC */
|
#endif /* TSC */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
@ -476,8 +476,8 @@ sys_setrecursionlimit(PyObject *self, PyObject *args)
|
||||||
if (!PyArg_ParseTuple(args, "i:setrecursionlimit", &new_limit))
|
if (!PyArg_ParseTuple(args, "i:setrecursionlimit", &new_limit))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (new_limit <= 0) {
|
if (new_limit <= 0) {
|
||||||
PyErr_SetString(PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError,
|
||||||
"recursion limit must be positive");
|
"recursion limit must be positive");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
Py_SetRecursionLimit(new_limit);
|
Py_SetRecursionLimit(new_limit);
|
||||||
|
@ -713,7 +713,7 @@ extern PyObject *_Py_GetDXProfile(PyObject *, PyObject *);
|
||||||
|
|
||||||
static PyMethodDef sys_methods[] = {
|
static PyMethodDef sys_methods[] = {
|
||||||
/* Might as well keep this in alphabetic order */
|
/* Might as well keep this in alphabetic order */
|
||||||
{"callstats", (PyCFunction)PyEval_GetCallStats, METH_NOARGS,
|
{"callstats", (PyCFunction)PyEval_GetCallStats, METH_NOARGS,
|
||||||
callstats_doc},
|
callstats_doc},
|
||||||
{"displayhook", sys_displayhook, METH_O, displayhook_doc},
|
{"displayhook", sys_displayhook, METH_O, displayhook_doc},
|
||||||
{"exc_info", sys_exc_info, METH_NOARGS, exc_info_doc},
|
{"exc_info", sys_exc_info, METH_NOARGS, exc_info_doc},
|
||||||
|
@ -721,11 +721,11 @@ static PyMethodDef sys_methods[] = {
|
||||||
{"excepthook", sys_excepthook, METH_VARARGS, excepthook_doc},
|
{"excepthook", sys_excepthook, METH_VARARGS, excepthook_doc},
|
||||||
{"exit", sys_exit, METH_VARARGS, exit_doc},
|
{"exit", sys_exit, METH_VARARGS, exit_doc},
|
||||||
#ifdef Py_USING_UNICODE
|
#ifdef Py_USING_UNICODE
|
||||||
{"getdefaultencoding", (PyCFunction)sys_getdefaultencoding,
|
{"getdefaultencoding", (PyCFunction)sys_getdefaultencoding,
|
||||||
METH_NOARGS, getdefaultencoding_doc},
|
METH_NOARGS, getdefaultencoding_doc},
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_DLOPEN
|
#ifdef HAVE_DLOPEN
|
||||||
{"getdlopenflags", (PyCFunction)sys_getdlopenflags, METH_NOARGS,
|
{"getdlopenflags", (PyCFunction)sys_getdlopenflags, METH_NOARGS,
|
||||||
getdlopenflags_doc},
|
getdlopenflags_doc},
|
||||||
#endif
|
#endif
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
|
@ -736,7 +736,7 @@ static PyMethodDef sys_methods[] = {
|
||||||
#endif
|
#endif
|
||||||
#ifdef Py_USING_UNICODE
|
#ifdef Py_USING_UNICODE
|
||||||
{"getfilesystemencoding", (PyCFunction)sys_getfilesystemencoding,
|
{"getfilesystemencoding", (PyCFunction)sys_getfilesystemencoding,
|
||||||
METH_NOARGS, getfilesystemencoding_doc},
|
METH_NOARGS, getfilesystemencoding_doc},
|
||||||
#endif
|
#endif
|
||||||
#ifdef Py_TRACE_REFS
|
#ifdef Py_TRACE_REFS
|
||||||
{"getobjects", _Py_GetObjects, METH_VARARGS},
|
{"getobjects", _Py_GetObjects, METH_VARARGS},
|
||||||
|
@ -757,14 +757,14 @@ static PyMethodDef sys_methods[] = {
|
||||||
#endif
|
#endif
|
||||||
#ifdef Py_USING_UNICODE
|
#ifdef Py_USING_UNICODE
|
||||||
{"setdefaultencoding", sys_setdefaultencoding, METH_VARARGS,
|
{"setdefaultencoding", sys_setdefaultencoding, METH_VARARGS,
|
||||||
setdefaultencoding_doc},
|
setdefaultencoding_doc},
|
||||||
#endif
|
#endif
|
||||||
{"setcheckinterval", sys_setcheckinterval, METH_VARARGS,
|
{"setcheckinterval", sys_setcheckinterval, METH_VARARGS,
|
||||||
setcheckinterval_doc},
|
setcheckinterval_doc},
|
||||||
{"getcheckinterval", sys_getcheckinterval, METH_NOARGS,
|
{"getcheckinterval", sys_getcheckinterval, METH_NOARGS,
|
||||||
getcheckinterval_doc},
|
getcheckinterval_doc},
|
||||||
#ifdef HAVE_DLOPEN
|
#ifdef HAVE_DLOPEN
|
||||||
{"setdlopenflags", sys_setdlopenflags, METH_VARARGS,
|
{"setdlopenflags", sys_setdlopenflags, METH_VARARGS,
|
||||||
setdlopenflags_doc},
|
setdlopenflags_doc},
|
||||||
#endif
|
#endif
|
||||||
{"setprofile", sys_setprofile, METH_O, setprofile_doc},
|
{"setprofile", sys_setprofile, METH_O, setprofile_doc},
|
||||||
|
@ -957,7 +957,7 @@ static void svnversion_init(void)
|
||||||
|
|
||||||
br_start = python + 8;
|
br_start = python + 8;
|
||||||
br_end = strchr(br_start, '/');
|
br_end = strchr(br_start, '/');
|
||||||
/* Works even for trunk,
|
/* Works even for trunk,
|
||||||
as we are in trunk/Python/sysmodule.c */
|
as we are in trunk/Python/sysmodule.c */
|
||||||
br_end2 = strchr(br_end+1, '/');
|
br_end2 = strchr(br_end+1, '/');
|
||||||
|
|
||||||
|
@ -966,7 +966,7 @@ static void svnversion_init(void)
|
||||||
strcpy(branch, "trunk");
|
strcpy(branch, "trunk");
|
||||||
strcpy(shortbranch, "trunk");
|
strcpy(shortbranch, "trunk");
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (istag || strncmp(br_start, "branches", 8) == 0) {
|
else if (istag || strncmp(br_start, "branches", 8) == 0) {
|
||||||
len = br_end2 - br_start;
|
len = br_end2 - br_start;
|
||||||
strncpy(branch, br_start, len);
|
strncpy(branch, br_start, len);
|
||||||
|
@ -975,7 +975,7 @@ static void svnversion_init(void)
|
||||||
len = br_end2 - (br_end + 1);
|
len = br_end2 - (br_end + 1);
|
||||||
strncpy(shortbranch, br_end + 1, len);
|
strncpy(shortbranch, br_end + 1, len);
|
||||||
shortbranch[len] = '\0';
|
shortbranch[len] = '\0';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Py_FatalError("bad HeadURL");
|
Py_FatalError("bad HeadURL");
|
||||||
return;
|
return;
|
||||||
|
@ -994,7 +994,7 @@ static void svnversion_init(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
svn_revision = "";
|
svn_revision = "";
|
||||||
|
|
||||||
svn_initialized = 1;
|
svn_initialized = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1168,7 +1168,7 @@ _PySys_Init(void)
|
||||||
if (warnoptions != NULL) {
|
if (warnoptions != NULL) {
|
||||||
PyDict_SetItemString(sysdict, "warnoptions", warnoptions);
|
PyDict_SetItemString(sysdict, "warnoptions", warnoptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PyErr_Occurred())
|
if (PyErr_Occurred())
|
||||||
return NULL;
|
return NULL;
|
||||||
return m;
|
return m;
|
||||||
|
@ -1180,7 +1180,7 @@ makepathobject(char *path, int delim)
|
||||||
int i, n;
|
int i, n;
|
||||||
char *p;
|
char *p;
|
||||||
PyObject *v, *w;
|
PyObject *v, *w;
|
||||||
|
|
||||||
n = 1;
|
n = 1;
|
||||||
p = path;
|
p = path;
|
||||||
while ((p = strchr(p, delim)) != NULL) {
|
while ((p = strchr(p, delim)) != NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue