Mercurial > cpython-lru_cache-weakref
diff Modules/xreadlinesmodule.c @ 23832:ed1ba37a46b7 legacy-trunk
Patch #568124: Add doc string macros.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 13 Jun 2002 20:33:02 +0000 |
| parents | 91dd223829c6 |
| children | 1598a1e473e2 |
line wrap: on
line diff
--- a/Modules/xreadlinesmodule.c Thu Jun 13 20:24:17 2002 +0000 +++ b/Modules/xreadlinesmodule.c Thu Jun 13 20:33:02 2002 +0000 @@ -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 @@ 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},
