Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/module.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 | 3c9232a684ae |
| children | 7109f31300fb |
line wrap: on
line diff
--- a/Modules/_sqlite/module.c Sun Oct 09 08:58:16 2011 +0200 +++ b/Modules/_sqlite/module.c Sun Oct 09 10:38:36 2011 +0200 @@ -179,13 +179,14 @@ PyObject* name = NULL; PyObject* callable; PyObject* retval = NULL; + _Py_identifier(upper); if (!PyArg_ParseTuple(args, "UO", &orig_name, &callable)) { return NULL; } /* convert the name to upper case */ - name = PyObject_CallMethod(orig_name, "upper", ""); + name = _PyObject_CallMethodId(orig_name, &PyId_upper, ""); if (!name) { goto error; }
