aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2018-05-18 11:11:28 -0500
committerSeth Forshee <seth.forshee@canonical.com>2018-05-18 11:11:28 -0500
commit3d661ef85732c7e7bb1651120a3c002bd8a4c438 (patch)
tree4bd787d09f1e46e34ec607a00ee39e05c9c798b7
parent41787549000244580b33108fb02477f3c950a01e (diff)
downloadwireless-regdb-3d661ef85732c7e7bb1651120a3c002bd8a4c438.tar.gz
wireless-regdb: Fix iteration in create_wmms() for python 3
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>
-rwxr-xr-xdb2fw.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db2fw.py b/db2fw.py
index 2693256..0c0f030 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