chiark / gitweb /
systemd-python: update Journal python docstrings
[elogind.git] / src / python-systemd / _reader.c
index c16cbdcd763b46f1bb3cadf8b665ed76c6a8a406..70676acecae85beb86360d79b7fb1795ad70bd89 100644 (file)
@@ -57,7 +57,7 @@ Journal_init(Journal *self, PyObject *args, PyObject *keywds)
     char *path=NULL;
 
     static char *kwlist[] = {"flags", "path", NULL};
-    if (! PyArg_ParseTupleAndKeywords(args, keywds, "|is", kwlist,
+    if (! PyArg_ParseTupleAndKeywords(args, keywds, "|iz", kwlist,
                                       &flags, &path))
         return 1;
 
@@ -642,7 +642,7 @@ static PyMethodDef Journal_methods[] = {
 
 static PyTypeObject JournalType = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "_reader.Journal",           /*tp_name*/
+    "_reader._Journal",               /*tp_name*/
     sizeof(Journal),                  /*tp_basicsize*/
     0,                                /*tp_itemsize*/
     (destructor)Journal_dealloc,      /*tp_dealloc*/