diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2011-10-09 10:38:36 +0200 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2011-10-09 10:38:36 +0200 |
| commit | afe55bba33a20f87a58f940186359237064b428f (patch) | |
| tree | 66d64a1518d79c3d0e90c0a1d0080cd88e887d99 /Modules/ossaudiodev.c | |
| parent | 67df285a3389c7fdb8c7bd301314ac45e17f8074 (diff) | |
| download | cpython-git-afe55bba33a20f87a58f940186359237064b428f.tar.gz | |
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
Diffstat (limited to 'Modules/ossaudiodev.c')
| -rw-r--r-- | Modules/ossaudiodev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c index f0fe8c2595..7512c1d926 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -534,7 +534,9 @@ oss_self(PyObject *self, PyObject *unused) static PyObject * oss_exit(PyObject *self, PyObject *unused) { - PyObject *ret = PyObject_CallMethod(self, "close", NULL); + _Py_identifier(close); + + PyObject *ret = _PyObject_CallMethodId(self, &PyId_close, NULL); if (!ret) return NULL; Py_DECREF(ret); |
