diff Modules/threadmodule.c @ 34998:25a0e1faa8a5 legacy-trunk

Delete some vestigial code; execution will never reach the 'if' statement if args is NULL
author Andrew M. Kuchling <amk@amk.ca>
date Thu, 02 Jun 2005 17:07:11 +0000
parents 0dd146fed9dd
children 2015d16d2647
line wrap: on
line diff
--- a/Modules/threadmodule.c	Thu Jun 02 16:59:18 2005 +0000
+++ b/Modules/threadmodule.c	Thu Jun 02 17:07:11 2005 +0000
@@ -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,