diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2018-05-18 11:11:28 -0500 |
---|---|---|
committer | Seth Forshee <seth.forshee@canonical.com> | 2018-05-18 11:11:28 -0500 |
commit | 3d661ef85732c7e7bb1651120a3c002bd8a4c438 (patch) | |
tree | 4bd787d09f1e46e34ec607a00ee39e05c9c798b7 | |
parent | 41787549000244580b33108fb02477f3c950a01e (diff) | |
download | wireless-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-x | db2fw.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |