From: Anthony Baxter Date: Thu, 1 Nov 2001 11:38:44 +0000 (+0000) Subject: backport of fix from 2.7 X-Git-Tag: v2.1.2c1~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c0d76e641489566ce6c4a4a01f1ba2176ab4073;p=thirdparty%2FPython%2Fcpython.git backport of fix from 2.7 Fix for bug [ #433047 ] missing args to PyArg_ParseTuple --- diff --git a/Modules/_codecsmodule.c b/Modules/_codecsmodule.c index 37d89e99ee53..ea530ee46fda 100644 --- a/Modules/_codecsmodule.c +++ b/Modules/_codecsmodule.c @@ -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;