summaryrefslogtreecommitdiff
path: root/src/python-systemd/docs/login.rst
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-06 20:32:12 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-06 20:32:12 -0400
commit2799e519cabb6dfa99341b9a56ebd4dc2a4ec22a (patch)
tree51a23ef7aab1f8b2a485e19bee46e110253e2447 /src/python-systemd/docs/login.rst
parentfc08079ef25a063f56be48b87035f8fde79153ba (diff)
Remove python-systemd
python-system has moved to it's own repository: https://github.com/systemd/python-systemd
Diffstat (limited to 'src/python-systemd/docs/login.rst')
-rw-r--r--src/python-systemd/docs/login.rst28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/python-systemd/docs/login.rst b/src/python-systemd/docs/login.rst
deleted file mode 100644
index 6b4de64c55..0000000000
--- a/src/python-systemd/docs/login.rst
+++ /dev/null
@@ -1,28 +0,0 @@
-`systemd.login` module
-=======================
-
-.. automodule:: systemd.login
- :members:
-
-.. autoclass:: Monitor
- :undoc-members:
- :inherited-members:
-
-Example: polling for events
-~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-This example shows that session/uid/seat/machine events can be waited
-for (using e.g. `poll`). This makes it easy to integrate Monitor in an
-external event loop:
-
- >>> import select
- >>> from systemd import login
- >>> m = login.Monitor("machine")
- >>> p = select.poll()
- >>> p.register(m, m.get_events())
- >>> login.machine_names()
- []
- >>> p.poll()
- [(3, 1)]
- >>> login.machine_names()
- ['fedora-19.nspawn']