[Python-checkins] r68773 - python/trunk/Modules/posixmodule.c

benjamin.peterson python-checkins at python.org
Mon Jan 19 16:51:28 CET 2009


Author: benjamin.peterson
Date: Mon Jan 19 16:51:27 2009
New Revision: 68773

Log:
simplify code

Modified:
   python/trunk/Modules/posixmodule.c

Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c	(original)
+++ python/trunk/Modules/posixmodule.c	Mon Jan 19 16:51:27 2009
@@ -6632,10 +6632,8 @@
 	Py_BEGIN_ALLOW_THREADS
 	res = ftruncate(fd, length);
 	Py_END_ALLOW_THREADS
-	if (res < 0) {
-		posix_error();
-		return NULL;
-	}
+	if (res < 0)
+		return posix_error();
 	Py_INCREF(Py_None);
 	return Py_None;
 }


More information about the Python-checkins mailing list