mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Renamed PyString to PyBytes
This commit is contained in:
parent
9c4756ea26
commit
72b710a596
78 changed files with 983 additions and 983 deletions
|
@ -142,7 +142,7 @@ msvcrt_getch(PyObject *self, PyObject *args)
|
|||
ch = _getch();
|
||||
Py_END_ALLOW_THREADS
|
||||
s[0] = ch;
|
||||
return PyString_FromStringAndSize(s, 1);
|
||||
return PyBytes_FromStringAndSize(s, 1);
|
||||
}
|
||||
|
||||
#if _MSC_VER >= 1300
|
||||
|
@ -176,7 +176,7 @@ msvcrt_getche(PyObject *self, PyObject *args)
|
|||
ch = _getche();
|
||||
Py_END_ALLOW_THREADS
|
||||
s[0] = ch;
|
||||
return PyString_FromStringAndSize(s, 1);
|
||||
return PyBytes_FromStringAndSize(s, 1);
|
||||
}
|
||||
|
||||
#if _MSC_VER >= 1300
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue