summaryrefslogtreecommitdiff
path: root/Objects/moduleobject.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-10-10 18:11:30 +0200
committerMartin v. Löwis <martin@v.loewis.de>2011-10-10 18:11:30 +0200
commitc3eb93fe1ce5f5ff2666fb9f34a6fd7c46279554 (patch)
tree22327341f23de643b9a5232102b03e9bf05b2c06 /Objects/moduleobject.c
parent38c3b0f952599c52b621ee06945432f1af635c16 (diff)
downloadcpython-c3eb93fe1ce5f5ff2666fb9f34a6fd7c46279554.tar.gz
Use identifier API for PyObject_GetAttrString.
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r--Objects/moduleobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 4b4f9d1958..32c4b9e385 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -415,8 +415,9 @@ module_clear(PyModuleObject *m)
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))