test: Switch to Python3
PATCH 1/1 test: Switch to Python3
Python2 will be maintained till end of 2019. Switch to Python3 by replacing iteritems() with items() to fix error when runnig test-nap:
AttributeError: 'dbus.Dictionary' object has no attribute 'iteritems'
--- test/bluezutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
test/bluezutils.py +1 -1
@@ -15,7 +15,7 @@ def find_adapter(pattern=None): def find_adapter_in_objects(objects, pattern=None): bus = dbus.SystemBus() - for path, ifaces in objects.iteritems(): + for path, ifaces in objects.items(): adapter = ifaces.get(ADAPTER_INTERFACE) if adapter is None: continue
Signature · 1 line
2.7.4
Hi Krzysztof,
Quoted 22 lines · Krzysztof Kozlowski
Python2 will be maintained till end of 2019. Switch to Python3 by replacing
iteritems()withitems()to fix error when runnig test-nap:AttributeError: 'dbus.Dictionary' object has no attribute 'iteritems'
--- test/bluezutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)test/bluezutils.py +1
-2@@ -15,7 +15,7 @@ def find_adapter(pattern=None): def find_adapter_in_objects(objects, pattern=None): bus = dbus.SystemBus() - for path, ifaces in objects.iteritems(): + for path, ifaces in objects.items(): adapter = ifaces.get(ADAPTER_INTERFACE) if adapter is None: continue --
Quoted 1 line
2.7.4
Applied, thanks.
Signature · 1 line
Luiz Augusto von Dentz