All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3
@ 2018-05-18 17:17 ` Seth Forshee
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

* [wireless-regdb] [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3
@ 2018-05-18 17:17 ` Seth Forshee
  0 siblings, 0 replies; 4+ 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


_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


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

* Re: [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3
  2018-05-18 17:17 ` [wireless-regdb] " Seth Forshee
@ 2018-05-25 16:34   ` Seth Forshee
  -1 siblings, 0 replies; 4+ 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] 4+ messages in thread

* Re: [wireless-regdb] [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3
@ 2018-05-25 16:34   ` Seth Forshee
  0 siblings, 0 replies; 4+ 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.

_______________________________________________
wireless-regdb mailing list
wireless-regdb@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wireless-regdb


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

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

Thread overview: 4+ 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-18 17:17 ` [wireless-regdb] " Seth Forshee
2018-05-25 16:34 ` Seth Forshee
2018-05-25 16:34   ` [wireless-regdb] " Seth Forshee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.