diff options
author | Larry Hastings <larry@hastings.org> | 2015-05-04 13:59:46 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-05-04 13:59:46 (GMT) |
commit | dbfdc380df615fe7e85107ff3954b8fff3ce7741 (patch) | |
tree | 25dd738cb50b260d6822ab76f39697c69e9a44c4 /Modules/cjkcodecs | |
parent | cb985563739f00dcccb03189c95deba604155777 (diff) | |
download | cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.zip cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.tar.gz cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.tar.bz2 |
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')
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 70f7a21..c4dff41 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; |