Re: [PATCH BlueZ] test: Switch to Python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Krzysztof,

On Mon, May 28, 2018 at 2:16 PM, Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
> 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(-)
>
> diff --git a/test/bluezutils.py b/test/bluezutils.py
> index de08cbdcb712..afbadfecd214 100644
> --- a/test/bluezutils.py
> +++ b/test/bluezutils.py
> @@ -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
> --
> 2.7.4

Applied, thanks.

-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux