From: Serhiy Storchaka Date: Thu, 26 Oct 2017 13:59:40 +0000 (+0300) Subject: Fix trailing whitespaces in C files. (#4130) X-Git-Tag: v3.7.0a3~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdf4298ae2c1d720fd808520267ca3a4e56df842;p=thirdparty%2FPython%2Fcpython.git Fix trailing whitespaces in C files. (#4130) --- diff --git a/Include/pystate.h b/Include/pystate.h index 0821238a0acc..93815850f3be 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -125,8 +125,8 @@ typedef struct _ts PyThreadState; #else typedef struct _err_stackitem { - /* This struct represents an entry on the exception stack, which is a - * per-coroutine state. (Coroutine in the computer science sense, + /* This struct represents an entry on the exception stack, which is a + * per-coroutine state. (Coroutine in the computer science sense, * including the thread and generators). * This ensures that the exception state is not impacted by "yields" * from an except handler. diff --git a/Include/pytime.h b/Include/pytime.h index 9ec9b03f19e9..9f489180ffff 100644 --- a/Include/pytime.h +++ b/Include/pytime.h @@ -30,14 +30,14 @@ typedef enum { /* Round to nearest with ties going to nearest even integer. For example, used to round from a Python float. */ _PyTime_ROUND_HALF_EVEN=2, - /* Round away from zero + /* Round away from zero For example, used for timeout. _PyTime_ROUND_CEILING rounds -1e-9 to 0 milliseconds which causes bpo-31786 issue. _PyTime_ROUND_UP rounds -1e-9 to -1 millisecond which keeps the timeout sign as expected. select.poll(timeout) must block for negative values." */ _PyTime_ROUND_UP=3, - /* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be + /* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be used for timeouts. */ _PyTime_ROUND_TIMEOUT = _PyTime_ROUND_UP } _PyTime_round_t; diff --git a/Modules/overlapped.c b/Modules/overlapped.c index 9355ce60f4dc..e66e85668405 100644 --- a/Modules/overlapped.c +++ b/Modules/overlapped.c @@ -804,7 +804,7 @@ do_WSARecv(OverlappedObject *self, HANDLE handle, WSABUF wsabuf; int ret; DWORD err; - + wsabuf.buf = bufstart; wsabuf.len = buflen; diff --git a/Python/pystate.c b/Python/pystate.c index 82ebf4da7db7..55ff64951b0b 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -450,7 +450,7 @@ PyThreadState_Clear(PyThreadState *tstate) Py_CLEAR(tstate->exc_state.exc_type); Py_CLEAR(tstate->exc_state.exc_value); Py_CLEAR(tstate->exc_state.exc_traceback); - + /* The stack of exception states should contain just this thread. */ assert(tstate->exc_info->previous_item == NULL); if (Py_VerboseFlag && tstate->exc_info != &tstate->exc_state) {