aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dbus')
-rwxr-xr-xexamples/dbus/test_bt_list_handles.py4
-rwxr-xr-xexamples/dbus/test_bt_search_devices.py10
-rwxr-xr-xexamples/dbus/test_signal_recipient.py10
-rwxr-xr-xexamples/dbus/test_signal_simple.py2
4 files changed, 13 insertions, 13 deletions
diff --git a/examples/dbus/test_bt_list_handles.py b/examples/dbus/test_bt_list_handles.py
index 6b514bf..52510ac 100755
--- a/examples/dbus/test_bt_list_handles.py
+++ b/examples/dbus/test_bt_list_handles.py
@@ -9,13 +9,13 @@ from efl import ecore
def print_remote_handles(adapter, bdaddr):
handles = [hex(int(h)) \
for h in list(adapter.GetRemoteServiceHandles(bdaddr, ""))]
- print "Handles:", handles
+ print("Handles:", handles)
ecore.idler_add(ecore.main_loop_quit)
return False
if len(sys.argv) != 2:
- print "USAGE: %s <bdaddr>" % sys.argv[0]
+ print("USAGE: %s <bdaddr>" % sys.argv[0])
sys.exit(1)
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
diff --git a/examples/dbus/test_bt_search_devices.py b/examples/dbus/test_bt_search_devices.py
index 9736f52..a4d1c53 100755
--- a/examples/dbus/test_bt_search_devices.py
+++ b/examples/dbus/test_bt_search_devices.py
@@ -6,20 +6,20 @@ from efl import ecore
def disc_started_signal():
- print "Signal: DiscoveryStarted()"
+ print("Signal: DiscoveryStarted()")
def rem_dev_found_signal(address, cls, rssi):
- print "Signal: RemoteDeviceFound(%s, %s, %s)" % (address, cls, rssi)
+ print("Signal: RemoteDeviceFound(%s, %s, %s)" % (address, cls, rssi))
def rem_dev_name_signal(address, name):
- print "Signal: RemoteNameUpdated(%s, %s)" % (address, name)
+ print("Signal: RemoteNameUpdated(%s, %s)" % (address, name))
def disc_completed_signal():
- print "Signal: DiscoveryCompleted()"
- ecore.idler_add(ecore.main_loop_quit)
+ print("Signal: DiscoveryCompleted()")
+ ecore.idler_add(ecore.main_loop_quit)
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
diff --git a/examples/dbus/test_signal_recipient.py b/examples/dbus/test_signal_recipient.py
index 9a97e11..2168f12 100755
--- a/examples/dbus/test_signal_recipient.py
+++ b/examples/dbus/test_signal_recipient.py
@@ -14,17 +14,17 @@ def emit_signal(obj):
def hello_signal_handler(hello_string):
- print "Received signal (by connecting using remote " \
- "object) and it says: %s" % hello_string
+ print("Received signal (by connecting using remote "
+ "object) and it says: %s" % hello_string)
def catchall_hello_signals_handler(hello_string):
- print "Received a hello signal and it says: %s" % hello_string
+ print("Received a hello signal and it says: %s" % hello_string)
def catchall_testservice_interface_handler(hello_string, dbus_message):
- print "com.example.TestService interface says %s " \
- "when it sent signal %s" % (hello_string, dbus_message.get_member())
+ print("com.example.TestService interface says %s "
+ "when it sent signal %s" % (hello_string, dbus_message.get_member()))
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()
diff --git a/examples/dbus/test_signal_simple.py b/examples/dbus/test_signal_simple.py
index b113fbb..6f077cc 100755
--- a/examples/dbus/test_signal_simple.py
+++ b/examples/dbus/test_signal_simple.py
@@ -6,7 +6,7 @@ from efl import ecore
def print_name_owner_changed(obj, old, new):
- print "Obj = '%s', Old = '%s', New = '%s'" % (obj, old, new)
+ print("Obj = '%s', Old = '%s', New = '%s'" % (obj, old, new))
dbus_ml = dbus_mainloop.DBusEcoreMainLoop()