mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#9087: update json docstrings -- unicode and long do not exist anymore.
This commit is contained in:
parent
8477f82c3e
commit
c8284cfc57
4 changed files with 24 additions and 26 deletions
|
@ -484,7 +484,7 @@ bail:
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(pydoc_scanstring,
|
||||
"scanstring(basestring, end, strict=True) -> (bytes, end)\n"
|
||||
"scanstring(string, end, strict=True) -> (string, end)\n"
|
||||
"\n"
|
||||
"Scan the string s for a JSON string. End is the index of the\n"
|
||||
"character in s after the quote that started the JSON string.\n"
|
||||
|
@ -512,7 +512,7 @@ py_scanstring(PyObject* self UNUSED, PyObject *args)
|
|||
}
|
||||
else {
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"first argument must be a string or bytes, not %.80s",
|
||||
"first argument must be a string, not %.80s",
|
||||
Py_TYPE(pystr)->tp_name);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -520,7 +520,7 @@ py_scanstring(PyObject* self UNUSED, PyObject *args)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(pydoc_encode_basestring_ascii,
|
||||
"encode_basestring_ascii(basestring) -> bytes\n"
|
||||
"encode_basestring_ascii(string) -> string\n"
|
||||
"\n"
|
||||
"Return an ASCII-only JSON representation of a Python string"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue