commit | a43ece965421b9078a77416b452573c4917d0b9a | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Thu Jun 02 17:07:11 2005 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Thu Jun 02 17:07:11 2005 +0000 |
tree | 17b8a257f8e2ee799caf36795ecf88f8a376299d | |
parent | 921879abc2bd233d4ce337b3976ff81c7bd017b3 [diff] [blame] |
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 eccb678..245c51d 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c
@@ -63,12 +63,7 @@ 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,