diff options
-rw-r--r-- | Modules/threadmodule.c | 7 |
1 files changed, 1 insertions, 6 deletions
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 @@ 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, |