]> granicus.if.org Git - python/commitdiff
Delete some vestigial code; execution will never reach the 'if' statement if args...
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 2 Jun 2005 17:07:11 +0000 (17:07 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 2 Jun 2005 17:07:11 +0000 (17:07 +0000)
Modules/threadmodule.c

index eccb678e5beed5329531e71f0595bfbfd92392b0..245c51dfdf236de2a8d429d501c987602a0dcdc8 100644 (file)
@@ -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,