@@ -282,7 +282,7 @@ binascii_b2a_uu(PyObject *self, PyObject *args)
282282 PyObject * rv ;
283283 Py_ssize_t bin_len ;
284284
285- if ( !PyArg_ParseTuple (args , "s *:b2a_uu" , & pbin ) )
285+ if ( !PyArg_ParseTuple (args , "y *:b2a_uu" , & pbin ) )
286286 return NULL ;
287287 bin_data = pbin .buf ;
288288 bin_len = pbin .len ;
@@ -478,7 +478,7 @@ binascii_b2a_base64(PyObject *self, PyObject *args)
478478 PyObject * rv ;
479479 Py_ssize_t bin_len ;
480480
481- if ( !PyArg_ParseTuple (args , "s *:b2a_base64" , & pbuf ) )
481+ if ( !PyArg_ParseTuple (args , "y *:b2a_base64" , & pbuf ) )
482482 return NULL ;
483483 bin_data = pbuf .buf ;
484484 bin_len = pbuf .len ;
@@ -618,7 +618,7 @@ binascii_rlecode_hqx(PyObject *self, PyObject *args)
618618 unsigned char ch ;
619619 Py_ssize_t in , inend , len ;
620620
621- if ( !PyArg_ParseTuple (args , "s *:rlecode_hqx" , & pbuf ) )
621+ if ( !PyArg_ParseTuple (args , "y *:rlecode_hqx" , & pbuf ) )
622622 return NULL ;
623623 in_data = pbuf .buf ;
624624 len = pbuf .len ;
@@ -684,7 +684,7 @@ binascii_b2a_hqx(PyObject *self, PyObject *args)
684684 PyObject * rv ;
685685 Py_ssize_t len ;
686686
687- if ( !PyArg_ParseTuple (args , "s *:b2a_hqx" , & pbin ) )
687+ if ( !PyArg_ParseTuple (args , "y *:b2a_hqx" , & pbin ) )
688688 return NULL ;
689689 bin_data = pbin .buf ;
690690 len = pbin .len ;
@@ -856,7 +856,7 @@ binascii_crc_hqx(PyObject *self, PyObject *args)
856856 unsigned int crc ;
857857 Py_ssize_t len ;
858858
859- if ( !PyArg_ParseTuple (args , "s *i:crc_hqx" , & pin , & crc ) )
859+ if ( !PyArg_ParseTuple (args , "y *i:crc_hqx" , & pin , & crc ) )
860860 return NULL ;
861861 bin_data = pin .buf ;
862862 len = pin .len ;
@@ -883,7 +883,7 @@ binascii_crc32(PyObject *self, PyObject *args)
883883 Py_ssize_t len ;
884884 int signed_val ;
885885
886- if (!PyArg_ParseTuple (args , "s *|I:crc32" , & pbuf , & crc32val ))
886+ if (!PyArg_ParseTuple (args , "y *|I:crc32" , & pbuf , & crc32val ))
887887 return NULL ;
888888 buf = (Byte * )pbuf .buf ;
889889 len = pbuf .len ;
@@ -1047,7 +1047,7 @@ binascii_hexlify(PyObject *self, PyObject *args)
10471047 char * retbuf ;
10481048 Py_ssize_t i , j ;
10491049
1050- if (!PyArg_ParseTuple (args , "s *:b2a_hex" , & parg ))
1050+ if (!PyArg_ParseTuple (args , "y *:b2a_hex" , & parg ))
10511051 return NULL ;
10521052 argbuf = parg .buf ;
10531053 arglen = parg .len ;
@@ -1300,7 +1300,7 @@ binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
13001300 int crlf = 0 ;
13011301 unsigned char * p ;
13021302
1303- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "s *|iii" , kwlist , & pdata ,
1303+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , "y *|iii" , kwlist , & pdata ,
13041304 & quotetabs , & istext , & header ))
13051305 return NULL ;
13061306 data = pdata .buf ;
0 commit comments