summaryrefslogtreecommitdiffstats
path: root/python/examples
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples')
-rw-r--r--python/examples/example-client.py1
-rw-r--r--python/examples/list-system-services.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/python/examples/example-client.py b/python/examples/example-client.py
index 7439e6bd..3d170bd4 100644
--- a/python/examples/example-client.py
+++ b/python/examples/example-client.py
@@ -19,3 +19,4 @@ print str(hello_reply_tuple)
print str(hello_reply_dict)
print remote_object.Introspect(dbus_interface="org.freedesktop.DBus.Introspectable")
+
diff --git a/python/examples/list-system-services.py b/python/examples/list-system-services.py
index d4280551..4cad8717 100644
--- a/python/examples/list-system-services.py
+++ b/python/examples/list-system-services.py
@@ -2,6 +2,7 @@
"""Lists services on the system bus
"""
+
import dbus
# Get a connection to the SYSTEM bus
@@ -18,5 +19,4 @@ dbus_iface = dbus.Interface(dbus_object, 'org.freedesktop.DBus')
# One of the member functions in the org.freedesktop.DBus interface
# is ListServices(), which provides a list of all the other services
# registered on this bus. Call it, and print the list.
-system_service_list = dbus_object.ListNames()
-print str(system_service_list)
+print dbus_object.ListNames()