summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-01 16:42:16 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-01 16:42:16 (GMT)
commit7a6de8b0f465037ed75104d8f17ca3de99a4da52 (patch)
tree22bfc2350b2a137406516f1168c8876ffc095a74 /Python/sysmodule.c
parent4f2c998ca97fdcfa2b137cd54a9fdba4a831d242 (diff)
downloadcpython-7a6de8b0f465037ed75104d8f17ca3de99a4da52.zip
cpython-7a6de8b0f465037ed75104d8f17ca3de99a4da52.tar.gz
cpython-7a6de8b0f465037ed75104d8f17ca3de99a4da52.tar.bz2
Some style nits. Also clarify in the docstrings what __sizeof__ does.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 54d0ddd..9564267 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -664,9 +664,9 @@ sys_getsizeof(PyObject *self, PyObject *args)
return PyObject_CallFunctionObjArgs(method, args, NULL);
}
/* Instance of old-style classes */
- else if(PyInstance_Check(args))
+ else if (PyInstance_Check(args))
return PyInt_FromSsize_t(PyInstance_Type.tp_basicsize);
- /* Old-style class */
+ /* Old-style classes */
else if (PyClass_Check(args))
return PyInt_FromSsize_t(PyClass_Type.tp_basicsize);
else