summaryrefslogtreecommitdiff
path: root/Python/condvar.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-28 17:08:35 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-28 17:08:35 +0300
commitf4590a801412d203b0597424cc6bd6c5f439f6d1 (patch)
treeaa68955d2c13a5186b5e9061c194978aacc8a045 /Python/condvar.h
parent6ea82ec7a7990220fd423ee7a777484dd24089b3 (diff)
parentfbff4549e00af01c17c03daa566002e560113fce (diff)
downloadcpython-f4590a801412d203b0597424cc6bd6c5f439f6d1.tar.gz
Issue #24336: The contextmanager decorator now works with functions with
keyword arguments called "func" and "self". Patch by Martin Panter.
Diffstat (limited to 'Python/condvar.h')
-rw-r--r--Python/condvar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/condvar.h b/Python/condvar.h
index ef818c4d4b..bb5b1b661f 100644
--- a/Python/condvar.h
+++ b/Python/condvar.h
@@ -1,4 +1,4 @@
-/*
+/*
* Portable condition variable support for windows and pthreads.
* Everything is inline, this header can be included where needed.
*
@@ -105,7 +105,7 @@ PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, PY_LONG_LONG us)
return 1;
else if (r)
return -1;
- else
+ else
return 0;
}
@@ -255,7 +255,7 @@ _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms)
* a new thread comes along, it will pass right throuhgh, having
* adjusted it to (waiting == 0 && sem.count == 0).
*/
-
+
if (wait == WAIT_FAILED)
return -1;
/* return 0 on success, 1 on timeout */