mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
This commit is contained in:
parent
67df285a33
commit
afe55bba33
50 changed files with 578 additions and 240 deletions
|
|
@ -150,8 +150,9 @@ PyObject* _pysqlite_get_converter(PyObject* key)
|
|||
{
|
||||
PyObject* upcase_key;
|
||||
PyObject* retval;
|
||||
_Py_identifier(upper);
|
||||
|
||||
upcase_key = PyObject_CallMethod(key, "upper", "");
|
||||
upcase_key = _PyObject_CallMethodId(key, &PyId_upper, "");
|
||||
if (!upcase_key) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue