@@ -554,7 +554,7 @@ static int PYXXH32_init(PYXXH32Object *self, PyObject *args, PyObject *kwargs)
554554
555555 buf .buf = buf .obj = NULL ;
556556
557- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|s *I:__init__" , keywords , & buf , & seed )) {
557+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|y *I:__init__" , keywords , & buf , & seed )) {
558558 return -1 ;
559559 }
560560
@@ -580,7 +580,7 @@ static PyObject *PYXXH32_update(PYXXH32Object *self, PyObject *args)
580580
581581 buf .buf = buf .obj = NULL ;
582582
583- if (!PyArg_ParseTuple (args , "s *:update" , & buf )) {
583+ if (!PyArg_ParseTuple (args , "y *:update" , & buf )) {
584584 return NULL ;
585585 }
586586
@@ -910,7 +910,7 @@ static int PYXXH64_init(PYXXH64Object *self, PyObject *args, PyObject *kwargs)
910910
911911 buf .buf = buf .obj = NULL ;
912912
913- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|s *K:__init__" , keywords , & buf , & seed )) {
913+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|y *K:__init__" , keywords , & buf , & seed )) {
914914 return -1 ;
915915 }
916916
@@ -936,7 +936,7 @@ static PyObject *PYXXH64_update(PYXXH64Object *self, PyObject *args)
936936
937937 buf .buf = buf .obj = NULL ;
938938
939- if (!PyArg_ParseTuple (args , "s *:update" , & buf )) {
939+ if (!PyArg_ParseTuple (args , "y *:update" , & buf )) {
940940 return NULL ;
941941 }
942942
@@ -1265,7 +1265,7 @@ static int PYXXH3_64_init(PYXXH3_64Object *self, PyObject *args, PyObject *kwarg
12651265
12661266 buf .buf = buf .obj = NULL ;
12671267
1268- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|s *K:__init__" , keywords , & buf , & seed )) {
1268+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|y *K:__init__" , keywords , & buf , & seed )) {
12691269 return -1 ;
12701270 }
12711271
@@ -1291,7 +1291,7 @@ static PyObject *PYXXH3_64_update(PYXXH3_64Object *self, PyObject *args)
12911291
12921292 buf .buf = buf .obj = NULL ;
12931293
1294- if (!PyArg_ParseTuple (args , "s *:update" , & buf )) {
1294+ if (!PyArg_ParseTuple (args , "y *:update" , & buf )) {
12951295 return NULL ;
12961296 }
12971297
@@ -1629,7 +1629,7 @@ static int PYXXH3_128_init(PYXXH3_128Object *self, PyObject *args, PyObject *kwa
16291629
16301630 buf .buf = buf .obj = NULL ;
16311631
1632- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|s *K:__init__" , keywords , & buf , & seed )) {
1632+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|y *K:__init__" , keywords , & buf , & seed )) {
16331633 return -1 ;
16341634 }
16351635
@@ -1654,7 +1654,7 @@ static PyObject *PYXXH3_128_update(PYXXH3_128Object *self, PyObject *args)
16541654 Py_buffer buf ;
16551655 buf .buf = buf .obj = NULL ;
16561656
1657- if (!PyArg_ParseTuple (args , "s *:update" , & buf )) {
1657+ if (!PyArg_ParseTuple (args , "y *:update" , & buf )) {
16581658 return NULL ;
16591659 }
16601660
0 commit comments