mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Remove dead code from _multiprocessing
This commit is contained in:
parent
fc75393275
commit
2341f9ba00
3 changed files with 3 additions and 58 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue