diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 +0000 |
commit | 14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f (patch) | |
tree | 7b150133cdd51df851c6bdaf261cd9ea30c149af /Modules/xreadlinesmodule.c | |
parent | 654c11ee3a2c9b72c040524c9cc4f95a1858f20b (diff) | |
download | cpython-git-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.tar.gz |
Patch #568124: Add doc string macros.
Diffstat (limited to 'Modules/xreadlinesmodule.c')
-rw-r--r-- | Modules/xreadlinesmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
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}, |