mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #28139: Fix messed up indentation
Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
This commit is contained in:
parent
4a72a7b6c4
commit
6d57fe1c23
8 changed files with 41 additions and 35 deletions
|
|
@ -154,18 +154,18 @@ itimer_retval(struct itimerval *iv)
|
|||
|
||||
r = PyTuple_New(2);
|
||||
if (r == NULL)
|
||||
return NULL;
|
||||
return NULL;
|
||||
|
||||
if(!(v = PyFloat_FromDouble(double_from_timeval(&iv->it_value)))) {
|
||||
Py_DECREF(r);
|
||||
return NULL;
|
||||
Py_DECREF(r);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PyTuple_SET_ITEM(r, 0, v);
|
||||
|
||||
if(!(v = PyFloat_FromDouble(double_from_timeval(&iv->it_interval)))) {
|
||||
Py_DECREF(r);
|
||||
return NULL;
|
||||
Py_DECREF(r);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PyTuple_SET_ITEM(r, 1, v);
|
||||
|
|
@ -1479,9 +1479,9 @@ PyInit__signal(void)
|
|||
|
||||
#if defined (HAVE_SETITIMER) || defined (HAVE_GETITIMER)
|
||||
ItimerError = PyErr_NewException("signal.ItimerError",
|
||||
PyExc_IOError, NULL);
|
||||
PyExc_IOError, NULL);
|
||||
if (ItimerError != NULL)
|
||||
PyDict_SetItemString(d, "ItimerError", ItimerError);
|
||||
PyDict_SetItemString(d, "ItimerError", ItimerError);
|
||||
#endif
|
||||
|
||||
#ifdef CTRL_C_EVENT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue