summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing/semaphore.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-09 18:55:03 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-09 18:55:03 (GMT)
commit2341f9ba009acad731cf34d8503c7a8f85ebf330 (patch)
tree115e51c6276666b54fc84b7930284a03863efa1d /Modules/_multiprocessing/semaphore.c
parentfc753932756d94c1063763f8d9bfe3178ec1c1b6 (diff)
downloadcpython-2341f9ba009acad731cf34d8503c7a8f85ebf330.zip
cpython-2341f9ba009acad731cf34d8503c7a8f85ebf330.tar.gz
cpython-2341f9ba009acad731cf34d8503c7a8f85ebf330.tar.bz2
Remove dead code from _multiprocessing
Diffstat (limited to 'Modules/_multiprocessing/semaphore.c')
-rw-r--r--Modules/_multiprocessing/semaphore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c
index c2cd914..6749f23 100644
--- a/Modules/_multiprocessing/semaphore.c
+++ b/Modules/_multiprocessing/semaphore.c
@@ -481,7 +481,7 @@ semlock_dealloc(SemLockObject* self)
static PyObject *
semlock_count(SemLockObject *self)
{
- return PyInt_FromLong((long)self->count);
+ return PyLong_FromLong((long)self->count);
}
static PyObject *
@@ -505,7 +505,7 @@ semlock_getvalue(SemLockObject *self)
the number of waiting threads */
if (sval < 0)
sval = 0;
- return PyInt_FromLong((long)sval);
+ return PyLong_FromLong((long)sval);
#endif
}