mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix for bug [ #433047 ] missing args to PyArg_ParseTuple
This commit is contained in:
parent
a85e2c8557
commit
4157dd5a92
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue