Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cursor.c @ 72835:5e33219492bc
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 09 Oct 2011 10:38:36 +0200 |
| parents | 652e2dacbf4b |
| children | 7109f31300fb |
line wrap: on
line diff
--- a/Modules/_sqlite/cursor.c Sun Oct 09 08:58:16 2011 +0200 +++ b/Modules/_sqlite/cursor.c Sun Oct 09 10:38:36 2011 +0200 @@ -150,8 +150,9 @@ { 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; }
