diff options
author | Jesse Noller <jnoller@gmail.com> | 2009-03-30 23:29:31 (GMT) |
---|---|---|
committer | Jesse Noller <jnoller@gmail.com> | 2009-03-30 23:29:31 (GMT) |
commit | 82eb5902ce169be81110c79662b772b904cd00fc (patch) | |
tree | 53aa2270a045dd78e0d4cfeef20c3ad23b18cd03 /Modules/_multiprocessing | |
parent | d7bf8a54787d0c3520a0788224537acab2491b38 (diff) | |
download | cpython-82eb5902ce169be81110c79662b772b904cd00fc.zip cpython-82eb5902ce169be81110c79662b772b904cd00fc.tar.gz cpython-82eb5902ce169be81110c79662b772b904cd00fc.tar.bz2 |
merge in patch from tim golden to fix contextmanager support for mp.Lock()
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r-- | Modules/_multiprocessing/semaphore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c index a5ba71e..2c2fb10 100644 --- a/Modules/_multiprocessing/semaphore.c +++ b/Modules/_multiprocessing/semaphore.c @@ -546,7 +546,7 @@ static PyMethodDef semlock_methods[] = { "acquire the semaphore/lock"}, {"release", (PyCFunction)semlock_release, METH_NOARGS, "release the semaphore/lock"}, - {"__enter__", (PyCFunction)semlock_acquire, METH_VARARGS, + {"__enter__", (PyCFunction)semlock_acquire, METH_VARARGS | METH_KEYWORDS, "enter the semaphore/lock"}, {"__exit__", (PyCFunction)semlock_release, METH_VARARGS, "exit the semaphore/lock"}, |