Revert 42400.

This commit is contained in:
Martin v. Löwis 2006-02-16 06:59:22 +00:00
parent 2c95cc6d72
commit e0e89f7920
5 changed files with 11 additions and 11 deletions

View file

@ -251,7 +251,7 @@ func_set_code(PyFunctionObject *op, PyObject *value)
"%s() requires a code object with %zd free vars,"
" not %zd",
PyString_AsString(op->func_name),
(long)nclosure, (long)nfree);
nclosure, nfree);
return -1;
}
tmp = op->func_code;
@ -403,7 +403,7 @@ func_new(PyTypeObject* type, PyObject* args, PyObject* kw)
return PyErr_Format(PyExc_ValueError,
"%s requires closure of length %zd, not %zd",
PyString_AS_STRING(code->co_name),
(long)nfree, (long)nclosure);
nfree, nclosure);
if (nclosure) {
Py_ssize_t i;
for (i = 0; i < nclosure; i++) {