[Python-checkins] cpython (2.7): close() doesn't take any args (closes #14717)

benjamin.peterson python-checkins at python.org
Fri May 4 00:44:39 CEST 2012


http://hg.python.org/cpython/rev/b2031eb95dd9
changeset:   76739:b2031eb95dd9
branch:      2.7
parent:      76732:8aab13719c02
user:        Benjamin Peterson <benjamin at python.org>
date:        Thu May 03 18:44:09 2012 -0400
summary:
  close() doesn't take any args (closes #14717)

files:
  Objects/genobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/genobject.c b/Objects/genobject.c
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -120,7 +120,7 @@
 }
 
 PyDoc_STRVAR(close_doc,
-"close(arg) -> raise GeneratorExit inside generator.");
+"close() -> raise GeneratorExit inside generator.");
 
 static PyObject *
 gen_close(PyGenObject *gen, PyObject *args)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list