diff options
-rw-r--r-- | Objects/object.c | 6 | ||||
-rw-r--r-- | Python/bltinmodule.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Objects/object.c b/Objects/object.c index e304d2f..1b37a8d 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1790,9 +1790,9 @@ error: static PyObject * _dir_object(PyObject *obj) { - PyObject * result = NULL; - PyObject * dirfunc = PyObject_GetAttrString((PyObject*)obj->ob_type, - "__dir__"); + PyObject *result = NULL; + PyObject *dirfunc = PyObject_GetAttrString((PyObject *)obj->ob_type, + "__dir__"); assert(obj); if (dirfunc == NULL) { diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index eef68e4..082f64c 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -503,7 +503,7 @@ PyDoc_STRVAR(dir_doc, " for a module object: the module's attributes.\n" " for a class object: its attributes, and recursively the attributes\n" " of its bases.\n" -" for an other object: its attributes, its class's attributes, and\n" +" for any other object: its attributes, its class's attributes, and\n" " recursively the attributes of its class's base classes."); static PyObject * |