@@ -827,7 +827,7 @@ _parse_object_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ss
827827
828828static PyObject *
829829_parse_array_unicode (PyScannerObject * s , PyObject * pystr , Py_ssize_t idx , Py_ssize_t * next_idx_ptr ) {
830- /* Read a JSON array from PyString pystr.
830+ /* Read a JSON array from PyUnicode pystr.
831831 idx is the index of the first character after the opening brace.
832832 *next_idx_ptr is a return-by-reference index to the first character after
833833 the closing brace.
@@ -899,8 +899,8 @@ _parse_array_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssi
899899}
900900
901901static PyObject *
902- _parse_constant (PyScannerObject * s , char * constant , Py_ssize_t idx , Py_ssize_t * next_idx_ptr ) {
903- /* Read a JSON constant from PyString pystr .
902+ _parse_constant (PyScannerObject * s , const char * constant , Py_ssize_t idx , Py_ssize_t * next_idx_ptr ) {
903+ /* Read a JSON constant.
904904 constant is the constant string that was found
905905 ("NaN", "Infinity", "-Infinity").
906906 idx is the index of the first character of the constant
@@ -932,7 +932,7 @@ _match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_
932932 the number.
933933
934934 Returns a new PyObject representation of that number:
935- PyInt, PyLong, or PyFloat.
935+ PyLong, or PyFloat.
936936 May return other types if parse_int or parse_float are set
937937 */
938938 void * str ;
0 commit comments