commit | 1ee1b6fe0dd7baca0da50e365929d03d42128705 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Mon Oct 10 18:11:30 2011 +0200 |
committer | Martin v. Löwis <martin@v.loewis.de> | Mon Oct 10 18:11:30 2011 +0200 |
tree | ae048787548a8915d3e75054a950f710ed521d84 | |
parent | 794d567b173e4cc10ad233aeb8743283ea9c3e6b [diff] [blame] |
Use identifier API for PyObject_GetAttrString.
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 4b4f9d1..32c4b9e 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c
@@ -415,8 +415,9 @@ static PyObject * module_dir(PyObject *self, PyObject *args) { + _Py_identifier(__dict__); PyObject *result = NULL; - PyObject *dict = PyObject_GetAttrString(self, "__dict__"); + PyObject *dict = _PyObject_GetAttrId(self, &PyId___dict__); if (dict != NULL) { if (PyDict_Check(dict))