mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-19 10:05:09 +08:00
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
This commit is contained in:
parent
419f00496c
commit
f6655d0a88
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user