[Python-checkins] r45300 - python/trunk/Objects/genobject.c

neal.norwitz python-checkins at python.org
Wed Apr 12 08:56:56 CEST 2006


Author: neal.norwitz
Date: Wed Apr 12 08:56:56 2006
New Revision: 45300

Modified:
   python/trunk/Objects/genobject.c
Log:
wrap docstrings so they are less than 80 columns. add spaces after commas.

Modified: python/trunk/Objects/genobject.c
==============================================================================
--- python/trunk/Objects/genobject.c	(original)
+++ python/trunk/Objects/genobject.c	Wed Apr 12 08:56:56 2006
@@ -106,7 +106,8 @@
 }
 
 PyDoc_STRVAR(send_doc,
-"send(arg) -> send 'arg' into generator, return next yielded value or raise StopIteration.");
+"send(arg) -> send 'arg' into generator,\n\
+return next yielded value or raise StopIteration.");
 
 static PyObject *
 gen_send(PyGenObject *gen, PyObject *arg)
@@ -203,7 +204,8 @@
 
 
 PyDoc_STRVAR(throw_doc,
-"throw(typ[,val[,tb]]) -> raise exception in generator, return next yielded value or raise StopIteration.");
+"throw(typ[,val[,tb]]) -> raise exception in generator,\n\
+return next yielded value or raise StopIteration.");
 
 static PyObject *
 gen_throw(PyGenObject *gen, PyObject *args) 
@@ -259,7 +261,7 @@
 			goto failed_throw;
 	}
 
-	PyErr_Restore(typ,val,tb);
+	PyErr_Restore(typ, val, tb);
 	return gen_send_ex(gen, Py_None, 1);
 
 failed_throw:


More information about the Python-checkins mailing list