From: Andrew M. Kuchling Date: Thu, 2 Jun 2005 17:07:11 +0000 (+0000) Subject: Delete some vestigial code; execution will never reach the 'if' statement if args... X-Git-Tag: v2.5a0~1756 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a43ece965421b9078a77416b452573c4917d0b9a;p=thirdparty%2FPython%2Fcpython.git Delete some vestigial code; execution will never reach the 'if' statement if args is NULL --- diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index eccb678e5bee..245c51dfdf23 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -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,