summaryrefslogtreecommitdiff
path: root/test/bluezutils.py
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2012-12-06 17:13:00 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-12-06 22:25:59 +0200
commitf6655d0a884dc7eb2ff5e204ab0b8dede14a39fe (patch)
treef16225581993cd3e4ba014f4816e5fa817b7892c /test/bluezutils.py
parent419f00496cb793ff25d3dba1048e668f12d9662d (diff)
downloadbluez-f6655d0a884dc7eb2ff5e204ab0b8dede14a39fe.tar.gz
test: Fix syntax in bluezutils.py
Traceback (most recent call last): File "./simple-agent", line 12, in <module> import bluezutils File "/home/fdanis/src/bluez/test/bluezutils.py", line 22 if not pattern or pattern == adapter["Address"] or ^ SyntaxError: invalid syntax
Diffstat (limited to 'test/bluezutils.py')
-rw-r--r--test/bluezutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bluezutils.py b/test/bluezutils.py
index d0c4773ed..de08cbdcb 100644
--- a/test/bluezutils.py
+++ b/test/bluezutils.py
@@ -19,8 +19,8 @@ def find_adapter_in_objects(objects, pattern=None):
adapter = ifaces.get(ADAPTER_INTERFACE)
if adapter is None:
continue
- if not pattern or pattern == adapter["Address"] or
- path.endswith(pattern)):
+ if not pattern or pattern == adapter["Address"] or \
+ path.endswith(pattern):
obj = bus.get_object(SERVICE_NAME, path)
return dbus.Interface(obj, ADAPTER_INTERFACE)
raise Exception("Bluetooth adapter not found")