chiark / gitweb /
systemd-python: also update the documentation
[elogind.git] / src / python-systemd / docs / journal.rst
index 08756b99be2b7e8c1d15382c889da1f45fc19031..ea74cf85c408f499255e95a091db684e1173930b 100644 (file)
@@ -42,7 +42,7 @@ event loop:
   >>> j = journal.Reader()
   >>> j.seek_tail()
   >>> p = select.poll()
-  >>> p.register(j, select.POLLIN)
+  >>> p.register(j, j.get_events())
   >>> p.poll()
   [(3, 1)]
   >>> j.get_next()
@@ -53,7 +53,8 @@ Journal access types
 
 .. autoattribute:: systemd.journal.LOCAL_ONLY
 .. autoattribute:: systemd.journal.RUNTIME_ONLY
-.. autoattribute:: systemd.journal.SYSTEM_ONLY
+.. autoattribute:: systemd.journal.SYSTEM
+.. autoattribute:: systemd.journal.CURRENT_USER
 
 Journal event types
 ~~~~~~~~~~~~~~~~~~~