summaryrefslogtreecommitdiff
path: root/Modules/cjkcodecs/multibytecodec.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-05-04 06:59:46 -0700
committerLarry Hastings <larry@hastings.org>2015-05-04 06:59:46 -0700
commitcc6bf529161d5befef04ea2c083fb22c30a6858c (patch)
treea6632092f14b35214c47fb973ed0cfb997d34be1 /Modules/cjkcodecs/multibytecodec.c
parentf64d8de83a463063d21f897ec1f5a3581289aeb3 (diff)
downloadcpython-cc6bf529161d5befef04ea2c083fb22c30a6858c.tar.gz
Issue #24001: Argument Clinic converters now use accept={type}
instead of types={'type'} to specify the types the converter accepts.
Diffstat (limited to 'Modules/cjkcodecs/multibytecodec.c')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index 70f7a21080..c4dff412ef 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -544,7 +544,7 @@ errorexit:
_multibytecodec.MultibyteCodec.encode
input: object
- errors: str(nullable=True) = NULL
+ errors: str(accept={str, NoneType}) = NULL
Return an encoded string version of `input'.
@@ -558,7 +558,7 @@ static PyObject *
_multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self,
PyObject *input,
const char *errors)
-/*[clinic end generated code: output=7b26652045ba56a9 input=252e7ee695867b2d]*/
+/*[clinic end generated code: output=7b26652045ba56a9 input=05f6ced3c8dd0582]*/
{
MultibyteCodec_State state;
PyObject *errorcb, *r, *ucvt;
@@ -613,7 +613,7 @@ errorexit:
_multibytecodec.MultibyteCodec.decode
input: Py_buffer
- errors: str(nullable=True) = NULL
+ errors: str(accept={str, NoneType}) = NULL
Decodes 'input'.
@@ -627,7 +627,7 @@ static PyObject *
_multibytecodec_MultibyteCodec_decode_impl(MultibyteCodecObject *self,
Py_buffer *input,
const char *errors)
-/*[clinic end generated code: output=ff419f65bad6cc77 input=37e1d9236e3ce8f3]*/
+/*[clinic end generated code: output=ff419f65bad6cc77 input=a7d45f87f75e5e02]*/
{
MultibyteCodec_State state;
MultibyteDecodeBuffer buf;