[Python-checkins] r63658 - python/branches/okkoto-sizeof/Python/sysmodule.c

robert.schuppenies python-checkins at python.org
Mon May 26 09:46:57 CEST 2008


Author: robert.schuppenies
Date: Mon May 26 09:46:56 2008
New Revision: 63658

Log:
code clean-up


Modified:
   python/branches/okkoto-sizeof/Python/sysmodule.c

Modified: python/branches/okkoto-sizeof/Python/sysmodule.c
==============================================================================
--- python/branches/okkoto-sizeof/Python/sysmodule.c	(original)
+++ python/branches/okkoto-sizeof/Python/sysmodule.c	Mon May 26 09:46:56 2008
@@ -642,11 +642,7 @@
 static PyObject *
 sys_getsizeof(PyObject *self, PyObject *args)
 {
-	PyObject *res;
-	res = PyObject_CallMethod(args, "__sizeof__", NULL);
-	if (res < 0 && PyErr_Occurred())
-		return NULL;
-	return res;
+	return PyObject_CallMethod(args, "__sizeof__", NULL);
 }
 
 PyDoc_STRVAR(getsizeof_doc,


More information about the Python-checkins mailing list