summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-01 20:47:58 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-01 20:47:58 (GMT)
commit38d45b7da9917b85857640bf4e583db5c1b0cec9 (patch)
tree561ad778045a736d5ae7dbe06963582e776eee4f /Modules
parent92f397209055a0ae7599e5a7ea202f19fae8fd7b (diff)
downloadcpython-38d45b7da9917b85857640bf4e583db5c1b0cec9.zip
cpython-38d45b7da9917b85857640bf4e583db5c1b0cec9.tar.gz
cpython-38d45b7da9917b85857640bf4e583db5c1b0cec9.tar.bz2
The second argument to start_new_thread() is not a tuple, as pointed
out by Curtis Jensen on c.l.py and forwarded by Fredrik Lundh.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/threadmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index a625146..46dd35a 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -221,7 +221,7 @@ t_bootstrap(void *boot_raw)
static PyObject *
thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs)
{
- PyObject *func, *args = NULL, *keyw = NULL;
+ PyObject *func, *args, *keyw = NULL;
struct bootstate *boot;
if (!PyArg_ParseTuple(fargs, "OO|O:start_new_thread", &func, &args, &keyw))
@@ -233,7 +233,7 @@ thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs)
}
if (!PyTuple_Check(args)) {
PyErr_SetString(PyExc_TypeError,
- "optional 2nd arg must be a tuple");
+ "2nd arg must be a tuple");
return NULL;
}
if (keyw != NULL && !PyDict_Check(keyw)) {