Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3
@ 2018-05-18 17:17 Seth Forshee
  2018-05-25 16:34 ` Seth Forshee
  0 siblings, 1 reply; 2+ messages in thread
From: Seth Forshee @ 2018-05-18 17:17 UTC (permalink / raw)
  To: wireless-regdb; +Cc: linux-wireless

The iteration in this function is over countries.itervalues(),
which is not compatible with python 3. Switch to iterating over
contries.values() instead.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
 db2fw.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db2fw.py b/db2fw.py
index 269325604ea3..0c0f030c0c63 100755
--- a/db2fw.py
+++ b/db2fw.py
@@ -29,7 +29,7 @@ def create_collections(countries):
 
 def create_wmms(countries):
     result = {}
-    for c in countries.itervalues():
+    for c in countries.values():
         for rule in c.permissions:
             if rule.wmmrule is not None:
                 result[rule.wmmrule] = 1
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3
  2018-05-18 17:17 [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3 Seth Forshee
@ 2018-05-25 16:34 ` Seth Forshee
  0 siblings, 0 replies; 2+ messages in thread
From: Seth Forshee @ 2018-05-25 16:34 UTC (permalink / raw)
  To: wireless-regdb; +Cc: linux-wireless

On Fri, May 18, 2018 at 12:17:25PM -0500, Seth Forshee wrote:
> The iteration in this function is over countries.itervalues(),
> which is not compatible with python 3. Switch to iterating over
> contries.values() instead.
> 
> Signed-off-by: Seth Forshee <seth.forshee@canonical.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-25 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-18 17:17 [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3 Seth Forshee
2018-05-25 16:34 ` Seth Forshee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox