Skip to content

Commit 6796951

Browse files
author
lemburg
committed
Fix for bug [ #433047 ] missing args to PyArg_ParseTuple
git-svn-id: http://svn.python.org/projects/python/trunk@21161 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 6ad0c44 commit 6796951

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_codecsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ utf_16_le_encode(PyObject *self,
440440
PyObject *str, *v;
441441
const char *errors = NULL;
442442

443-
if (!PyArg_ParseTuple(args, "O|zi:utf_16_le_encode",
443+
if (!PyArg_ParseTuple(args, "O|z:utf_16_le_encode",
444444
&str, &errors))
445445
return NULL;
446446

@@ -463,7 +463,7 @@ utf_16_be_encode(PyObject *self,
463463
PyObject *str, *v;
464464
const char *errors = NULL;
465465

466-
if (!PyArg_ParseTuple(args, "O|zi:utf_16_be_encode",
466+
if (!PyArg_ParseTuple(args, "O|z:utf_16_be_encode",
467467
&str, &errors))
468468
return NULL;
469469

0 commit comments

Comments
 (0)