From: Georg Brandl Date: Tue, 13 Mar 2007 07:23:16 +0000 (+0000) Subject: Typo and grammar fixes. X-Git-Tag: v2.6a1~2031 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bb156722e97c31260b4da6c22594a7698e5cf04;p=thirdparty%2FPython%2Fcpython.git Typo and grammar fixes. --- diff --git a/Objects/object.c b/Objects/object.c index e304d2fb1117..1b37a8dad3d2 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 eef68e4cbc91..082f64c34474 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 *