mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Renamed PyString to PyBytes
This commit is contained in:
parent
c3cb683d63
commit
593daf545b
176 changed files with 2793 additions and 2791 deletions
|
|
@ -241,12 +241,12 @@ PyObject* pysqlite_cache_display(pysqlite_Cache* self, PyObject* args)
|
|||
if (!fmt_args) {
|
||||
return NULL;
|
||||
}
|
||||
template = PyString_FromString("%s <- %s ->%s\n");
|
||||
template = PyBytes_FromString("%s <- %s ->%s\n");
|
||||
if (!template) {
|
||||
Py_DECREF(fmt_args);
|
||||
return NULL;
|
||||
}
|
||||
display_str = PyString_Format(template, fmt_args);
|
||||
display_str = PyBytes_Format(template, fmt_args);
|
||||
Py_DECREF(template);
|
||||
Py_DECREF(fmt_args);
|
||||
if (!display_str) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue