summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-16 19:51:28 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-16 19:51:28 +0000
commit916df7703d828afec95635d309ca83bc1c05fd98 (patch)
treea30ca4e34bfa8a69d9b2fe6d3515648fb483bd84 /examples
parentf0deb687acad02173c20a0dc644323774b24dc0e (diff)
examples: Don't load a main loop when only making blocking calls
Diffstat (limited to 'examples')
-rw-r--r--examples/example-client.py2
-rw-r--r--examples/list-system-services.py3
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/example-client.py b/examples/example-client.py
index 7effb04..5d881fd 100644
--- a/examples/example-client.py
+++ b/examples/example-client.py
@@ -10,7 +10,6 @@ import sys
from traceback import print_exc
import dbus
-import dbus.mainloop.glib
def main():
bus = dbus.SessionBus()
@@ -53,5 +52,4 @@ def main():
iface.Exit()
if __name__ == '__main__':
- dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
main()
diff --git a/examples/list-system-services.py b/examples/list-system-services.py
index 28dae35..0474574 100644
--- a/examples/list-system-services.py
+++ b/examples/list-system-services.py
@@ -6,7 +6,6 @@ List services on the system bus (default) or the session bus."""
import sys
import dbus
-from dbus.mainloop import NULL_MAIN_LOOP
def main(argv):
factory = dbus.SystemBus
@@ -21,7 +20,7 @@ def main(argv):
# Get a connection to the system or session bus as appropriate
# We're only using blocking calls, so don't actually need a main loop here
- bus = factory(mainloop=NULL_MAIN_LOOP)
+ bus = factory()
# Get a reference to the desktop bus' standard object, denoted
# by the path /org/freedesktop/DBus.