mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Issue #26057: Got rid of nonneeded use of PyUnicode_FromObject().
This commit is contained in:
parent
131b8f8eee
commit
21a663ea28
6 changed files with 240 additions and 641 deletions
|
@ -1931,9 +1931,8 @@ builtin_input_impl(PyModuleDef *module, PyObject *prompt)
|
|||
Py_CLEAR(stringpo);
|
||||
if (po == NULL)
|
||||
goto _readline_errors;
|
||||
promptstr = PyBytes_AsString(po);
|
||||
if (promptstr == NULL)
|
||||
goto _readline_errors;
|
||||
assert(PyBytes_Check(po));
|
||||
promptstr = PyBytes_AS_STRING(po);
|
||||
}
|
||||
else {
|
||||
po = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue