diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-30 08:30:39 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-30 08:30:39 (GMT) |
commit | 8b2e8b6cce4960e945c7c635c350c8e44a0f9022 (patch) | |
tree | 1e5bec3737bb877e4c0d16ac32f60450f957d7dd /Modules/cjkcodecs | |
parent | 7e810a6e3d51e512968f6ac276e555ea99d151d8 (diff) | |
download | cpython-8b2e8b6cce4960e945c7c635c350c8e44a0f9022.zip cpython-8b2e8b6cce4960e945c7c635c350c8e44a0f9022.tar.gz cpython-8b2e8b6cce4960e945c7c635c350c8e44a0f9022.tar.bz2 |
Specify default values of semantic booleans in Argument Clinic generated signatures as booleans.
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r-- | Modules/cjkcodecs/clinic/multibytecodec.c.h | 6 | ||||
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Modules/cjkcodecs/clinic/multibytecodec.c.h b/Modules/cjkcodecs/clinic/multibytecodec.c.h index 1985147..8a47ff8 100644 --- a/Modules/cjkcodecs/clinic/multibytecodec.c.h +++ b/Modules/cjkcodecs/clinic/multibytecodec.c.h @@ -79,7 +79,7 @@ exit: } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalEncoder_encode__doc__, -"encode($self, /, input, final=0)\n" +"encode($self, /, input, final=False)\n" "--\n" "\n"); @@ -126,7 +126,7 @@ _multibytecodec_MultibyteIncrementalEncoder_reset(MultibyteIncrementalEncoderObj } PyDoc_STRVAR(_multibytecodec_MultibyteIncrementalDecoder_decode__doc__, -"decode($self, /, input, final=0)\n" +"decode($self, /, input, final=False)\n" "--\n" "\n"); @@ -317,4 +317,4 @@ PyDoc_STRVAR(_multibytecodec___create_codec__doc__, #define _MULTIBYTECODEC___CREATE_CODEC_METHODDEF \ {"__create_codec", (PyCFunction)_multibytecodec___create_codec, METH_O, _multibytecodec___create_codec__doc__}, -/*[clinic end generated code: output=c104f5fd548c1ac5 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=eebb21e18c3043d1 input=a9049054013a1b77]*/ diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index c4dff41..c051514 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -884,14 +884,14 @@ decoder_feed_buffer(MultibyteStatefulDecoderContext *ctx, _multibytecodec.MultibyteIncrementalEncoder.encode input: object - final: int = 0 + final: int(c_default="0") = False [clinic start generated code]*/ static PyObject * _multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self, PyObject *input, int final) -/*[clinic end generated code: output=123361b6c505e2c1 input=456b76d73e464661]*/ +/*[clinic end generated code: output=123361b6c505e2c1 input=a345c688fa664f92]*/ { return encoder_encode_stateful(STATEFUL_ECTX(self), input, final); } @@ -1041,14 +1041,14 @@ static PyTypeObject MultibyteIncrementalEncoder_Type = { _multibytecodec.MultibyteIncrementalDecoder.decode input: Py_buffer - final: int = 0 + final: int(c_default="0") = False [clinic start generated code]*/ static PyObject * _multibytecodec_MultibyteIncrementalDecoder_decode_impl(MultibyteIncrementalDecoderObject *self, Py_buffer *input, int final) -/*[clinic end generated code: output=b9b9090e8a9ce2ba input=eb18c2f6e83589e1]*/ +/*[clinic end generated code: output=b9b9090e8a9ce2ba input=576631c61906d39d]*/ { MultibyteDecodeBuffer buf; char *data, *wdata = NULL; |