@@ -724,6 +724,7 @@ binascii.a2b_base64
724724 not allowed. The same applies to excess data after padding (= / ==).
725725 Set to True by default if ignorechars is specified, False otherwise.
726726 padded: bool = True
727+ When set to false, padding in input is not required.
727728 alphabet: PyBytesObject(c_default="NULL") = BASE64_ALPHABET
728729 ignorechars: Py_buffer = NULL
729730 A byte string containing characters to ignore from the input when
@@ -736,7 +737,7 @@ static PyObject *
736737binascii_a2b_base64_impl (PyObject * module , Py_buffer * data , int strict_mode ,
737738 int padded , PyBytesObject * alphabet ,
738739 Py_buffer * ignorechars )
739- /*[clinic end generated code: output=525d840a299ff132 input=d2d22b68a527a1db ]*/
740+ /*[clinic end generated code: output=525d840a299ff132 input=74a53dd3b23474b3 ]*/
740741{
741742 assert (data -> len >= 0 );
742743
@@ -924,6 +925,7 @@ binascii.b2a_base64
924925 /
925926 *
926927 padded: bool = True
928+ When set to false, omit padding in the output.
927929 wrapcol: size_t = 0
928930 newline: bool = True
929931 alphabet: Py_buffer(c_default="{NULL, NULL}") = BASE64_ALPHABET
@@ -934,7 +936,7 @@ Base64-code line of data.
934936static PyObject *
935937binascii_b2a_base64_impl (PyObject * module , Py_buffer * data , int padded ,
936938 size_t wrapcol , int newline , Py_buffer * alphabet )
937- /*[clinic end generated code: output=a2057b906dc201ab input=3b2f528e4eaa3bdb ]*/
939+ /*[clinic end generated code: output=a2057b906dc201ab input=cfa33ad73051d3f7 ]*/
938940{
939941 const unsigned char * table_b2a = table_b2a_base64 ;
940942 const unsigned char * bin_data = data -> buf ;
@@ -1528,6 +1530,7 @@ binascii.a2b_base32
15281530 /
15291531 *
15301532 padded: bool = True
1533+ When set to false, padding in input is not required.
15311534 alphabet: PyBytesObject(c_default="NULL") = BASE32_ALPHABET
15321535 ignorechars: Py_buffer = b''
15331536 A byte string containing characters to ignore from the input.
@@ -1538,7 +1541,7 @@ Decode a line of base32 data.
15381541static PyObject *
15391542binascii_a2b_base32_impl (PyObject * module , Py_buffer * data , int padded ,
15401543 PyBytesObject * alphabet , Py_buffer * ignorechars )
1541- /*[clinic end generated code: output=7dbbaa816d956b1c input=88edb4e84a5988c5 ]*/
1544+ /*[clinic end generated code: output=7dbbaa816d956b1c input=07a3721acdf9b688 ]*/
15421545{
15431546 const unsigned char * ascii_data = data -> buf ;
15441547 Py_ssize_t ascii_len = data -> len ;
@@ -1734,6 +1737,7 @@ binascii.b2a_base32
17341737 /
17351738 *
17361739 padded: bool = True
1740+ When set to false, omit padding in the output.
17371741 wrapcol: size_t = 0
17381742 alphabet: Py_buffer(c_default="{NULL, NULL}") = BASE32_ALPHABET
17391743
@@ -1743,7 +1747,7 @@ Base32-code line of data.
17431747static PyObject *
17441748binascii_b2a_base32_impl (PyObject * module , Py_buffer * data , int padded ,
17451749 size_t wrapcol , Py_buffer * alphabet )
1746- /*[clinic end generated code: output=acc09e685569aab9 input=c3c0bb816fb5bd75 ]*/
1750+ /*[clinic end generated code: output=acc09e685569aab9 input=1889b0c497a1d3c2 ]*/
17471751{
17481752 const unsigned char * table_b2a = table_b2a_base32 ;
17491753 const unsigned char * bin_data = data -> buf ;
0 commit comments