]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix for bug [ #433047 ] missing args to PyArg_ParseTuple
authorMarc-André Lemburg <mal@egenix.com>
Sun, 17 Jun 2001 18:32:36 +0000 (18:32 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Sun, 17 Jun 2001 18:32:36 +0000 (18:32 +0000)
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;