mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Delete some vestigial code; execution will never reach the 'if' statement if args is NULL
This commit is contained in:
parent
921879abc2
commit
a43ece9654
1 changed files with 1 additions and 6 deletions
|
@ -63,12 +63,7 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args)
|
|||
i = PyThread_acquire_lock(self->lock_lock, i);
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
if (args == NULL) {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
else
|
||||
return PyBool_FromLong((long)i);
|
||||
return PyBool_FromLong((long)i);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(acquire_doc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue