Fix for bug [ #433047 ] missing args to PyArg_ParseTuple

This commit is contained in:
Marc-André Lemburg 2001-06-17 18:32:36 +00:00
parent a85e2c8557
commit 4157dd5a92

View file

@ -440,7 +440,7 @@ utf_16_le_encode(PyObject *self,
PyObject *str, *v;
const char *errors = NULL;
if (!PyArg_ParseTuple(args, "O|zi:utf_16_le_encode",
if (!PyArg_ParseTuple(args, "O|z:utf_16_le_encode",
&str, &errors))
return NULL;
@ -463,7 +463,7 @@ utf_16_be_encode(PyObject *self,
PyObject *str, *v;
const char *errors = NULL;
if (!PyArg_ParseTuple(args, "O|zi:utf_16_be_encode",
if (!PyArg_ParseTuple(args, "O|z:utf_16_be_encode",
&str, &errors))
return NULL;