summaryrefslogtreecommitdiff
path: root/src/python-systemd/docs/journal.rst
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-09 18:10:30 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-09 18:13:33 -0400
commit7ecec4705c0cacb1446af0eb7a4aee66c00d058f (patch)
tree9761c582b900067bca3e69c6f22f18e77fa70385 /src/python-systemd/docs/journal.rst
parentb3af9646f8ac23e73fe1d7af3b69e35b1547b13e (diff)
systemd-python: wrap sd_login_monitor
Diffstat (limited to 'src/python-systemd/docs/journal.rst')
-rw-r--r--src/python-systemd/docs/journal.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/docs/journal.rst b/src/python-systemd/docs/journal.rst
index 08756b99be..e6c42061f3 100644
--- a/src/python-systemd/docs/journal.rst
+++ b/src/python-systemd/docs/journal.rst
@@ -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()