diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-22 11:59:55 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-22 11:59:55 (GMT) |
commit | 44bf631ad9996004cbd3e0cb03dd94febcba950f (patch) | |
tree | 7bcd62f56229eae1d97c30168433e977049f58a9 /Modules/cjkcodecs | |
parent | 81fabdb437eea29e2616de58e6952b7ef2e5542f (diff) | |
download | cpython-44bf631ad9996004cbd3e0cb03dd94febcba950f.zip cpython-44bf631ad9996004cbd3e0cb03dd94febcba950f.tar.gz cpython-44bf631ad9996004cbd3e0cb03dd94febcba950f.tar.bz2 |
Followup of #4874: also fix multibytecodec.c
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 2732270..82dfd49 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -612,7 +612,7 @@ MultibyteCodec_Decode(MultibyteCodecObject *self, const char *data, *errors = NULL; Py_ssize_t datalen, finalsize; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s*|z:decode", + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "y*|z:decode", codeckwarglist, &pdata, &errors)) return NULL; data = pdata.buf; @@ -1038,7 +1038,7 @@ mbidecoder_decode(MultibyteIncrementalDecoderObject *self, Py_ssize_t wsize, finalsize = 0, size, origpending; int final = 0; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s*|i:decode", + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "y*|i:decode", incrementalkwarglist, &pdata, &final)) return NULL; data = pdata.buf; |