Commit 4157dd5a authored by Marc-André Lemburg's avatar Marc-André Lemburg

Fix for bug [ #433047 ] missing args to PyArg_ParseTuple

parent a85e2c85
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment