diff options
author | Diego Rondini <diego.rondini@kynetics.com> | 2022-04-19 17:09:49 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-04-19 15:32:16 -0700 |
commit | a1939bd51e0faba9a8550eea2590d99cb63a33c1 (patch) | |
tree | bf6bad910f03549967c1f9f8e919444f2876147d /test/test-device | |
parent | 832b594a25051b11345c3491dd20958c22278dfe (diff) | |
download | bluez-a1939bd51e0faba9a8550eea2590d99cb63a33c1.tar.gz |
test: changes for Python3
Remove some leftover usage of Python2 code. In particular replace
iteritems() with items() to fix the following error:
AttributeError: 'dbus.Dictionary' object has no attribute 'iteritems'
Diffstat (limited to 'test/test-device')
-rwxr-xr-x | test/test-device | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-device b/test/test-device index a1e508166..c840f0565 100755 --- a/test/test-device +++ b/test/test-device @@ -49,7 +49,7 @@ if (args[0] == "list"): "org.freedesktop.DBus.ObjectManager") objects = om.GetManagedObjects() - for path, interfaces in objects.iteritems(): + for path, interfaces in objects.items(): if "org.bluez.Device1" not in interfaces: continue properties = interfaces["org.bluez.Device1"] |