]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport of fix from 2.7
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 11:38:44 +0000 (11:38 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 11:38:44 +0000 (11:38 +0000)
  Fix for bug [ #433047 ] missing args to PyArg_ParseTuple

Modules/_codecsmodule.c

index 37d89e99ee5317513f648353f457dd9ef7b29e1d..ea530ee46fda99062b733bd286f85486a0a5c325 100644 (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;