From 14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 13 Jun 2002 20:33:02 +0000 Subject: Patch #568124: Add doc string macros. --- Modules/xreadlinesmodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/xreadlinesmodule.c') diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c index 4511f17f67..7fba5dbfeb 100644 --- a/Modules/xreadlinesmodule.c +++ b/Modules/xreadlinesmodule.c @@ -1,9 +1,9 @@ #include "Python.h" -static char xreadlines_doc [] = +PyDoc_STRVAR(xreadlines_doc, "xreadlines(f)\n\ \n\ -Return an xreadlines object for the file f."; +Return an xreadlines object for the file f."); typedef struct { PyObject_HEAD @@ -112,7 +112,7 @@ xreadlines_next(PyXReadlinesObject *a, PyObject *args) return res; } -static char next_doc[] = "x.next() -> the next line or raise StopIteration"; +PyDoc_STRVAR(next_doc, "x.next() -> the next line or raise StopIteration"); static PyMethodDef xreadlines_methods[] = { {"next", (PyCFunction)xreadlines_next, METH_VARARGS, next_doc}, -- cgit v1.2.1