Kaydet (Commit) a43ece96 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Delete some vestigial code; execution will never reach the 'if' statement if args is NULL

üst 921879ab
...@@ -63,12 +63,7 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args) ...@@ -63,12 +63,7 @@ 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) { return PyBool_FromLong((long)i);
Py_INCREF(Py_None);
return Py_None;
}
else
return PyBool_FromLong((long)i);
} }
PyDoc_STRVAR(acquire_doc, PyDoc_STRVAR(acquire_doc,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment