chiark / gitweb /
systemd-python: fix formatting in docstring
[elogind.git] / src / python-systemd / _reader.c
index d1188a147a52df7de9bb12642ed74d77caf500e6..3b36634e7b62e845d3713770d79fabf95b4d71ff 100644 (file)
@@ -64,7 +64,7 @@ PyDoc_STRVAR(MonotonicType__doc__,
 static PyStructSequence_Field MonotonicType_fields[] = {
     {(char*) "timestamp", (char*) "Time"},
     {(char*) "bootid", (char*) "Unique identifier of the boot"},
-    {NULL, NULL}
+    {} /* Sentinel */
 };
 
 static PyStructSequence_Desc Monotonic_desc = {
@@ -175,10 +175,10 @@ static PyObject* Reader_close(Reader *self, PyObject *args)
 
 PyDoc_STRVAR(Reader_get_usage__doc__,
              "get_usage() -> int\n\n"
-             "Returns the total disk space currently used by journal"
-             "files (in bytes). If `SD_JOURNAL_LOCAL_ONLY` was"
-             "passed when opening the journal this value will only reflect"
-             "the size of journal files of the local host, otherwise"
+             "Returns the total disk space currently used by journal\n"
+             "files (in bytes). If `SD_JOURNAL_LOCAL_ONLY` was\n"
+             "passed when opening the journal this value will only reflect\n"
+             "the size of journal files of the local host, otherwise\n"
              "of all hosts.\n\n"
              "This method invokes sd_journal_get_usage().\n"
              "See man:sd_journal_get_usage(3).");
@@ -628,7 +628,8 @@ PyDoc_STRVAR(Reader_wait__doc__,
              "then block forever.\n\n"
              "Will return constants: NOP if no change; APPEND if new\n"
              "entries have been added to the end of the journal; and\n"
-             "INVALIDATE if journal files have been added or removed.");
+             "INVALIDATE if journal files have been added or removed.\n\n"
+             "See man:sd_journal_wait(3) for further discussion.");
 static PyObject* Reader_wait(Reader *self, PyObject *args)
 {
     int r;
@@ -898,7 +899,7 @@ static PyGetSetDef Reader_getsetters[] = {
      NULL,
      (char*) closed__doc__,
      NULL},
-    {NULL}
+    {} /* Sentinel */
 };
 
 static PyMethodDef Reader_methods[] = {
@@ -927,7 +928,7 @@ static PyMethodDef Reader_methods[] = {
     {"test_cursor",     (PyCFunction) Reader_test_cursor, METH_VARARGS, Reader_test_cursor__doc__},
     {"query_unique",    (PyCFunction) Reader_query_unique, METH_VARARGS, Reader_query_unique__doc__},
     {"get_catalog",     (PyCFunction) Reader_get_catalog, METH_NOARGS, Reader_get_catalog__doc__},
-    {NULL}  /* Sentinel */
+    {}  /* Sentinel */
 };
 
 static PyTypeObject ReaderType = {