mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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,11 +63,6 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args)
|
||||||
i = PyThread_acquire_lock(self->lock_lock, i);
|
i = PyThread_acquire_lock(self->lock_lock, i);
|
||||||
Py_END_ALLOW_THREADS
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue