[Python-checkins] python/dist/src/Modules threadmodule.c, 2.60, 2.61
akuchling@users.sourceforge.net
akuchling at users.sourceforge.net
Thu Jun 2 19:07:13 CEST 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19999
Modified Files:
threadmodule.c
Log Message:
Delete some vestigial code; execution will never reach the 'if' statement if args is NULL
Index: threadmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/threadmodule.c,v
retrieving revision 2.60
retrieving revision 2.61
diff -u -d -r2.60 -r2.61
--- threadmodule.c 20 Feb 2005 03:02:16 -0000 2.60
+++ threadmodule.c 2 Jun 2005 17:07:11 -0000 2.61
@@ -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,
More information about the Python-checkins
mailing list