mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Change name from string to basestring
This commit is contained in:
parent
9b414ac93e
commit
32a7e7f6b6
3 changed files with 6 additions and 6 deletions
|
|
@ -2859,17 +2859,17 @@ static PyObject *
|
|||
basestring_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"The string type cannot be instantiated");
|
||||
"The basestring type cannot be instantiated");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static char basestring_doc[] =
|
||||
"Type string cannot be instantiated; it is the base for str and unicode.";
|
||||
"Type basestring cannot be instantiated; it is the base for str and unicode.";
|
||||
|
||||
PyTypeObject PyBaseString_Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
0,
|
||||
"string",
|
||||
"basestring",
|
||||
0,
|
||||
0,
|
||||
0, /* tp_dealloc */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue