Skip to content

Commit

Permalink
Added some more Py3 compatibility fixes as per 2to3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolak-net committed Mar 13, 2018
1 parent 8dcc557 commit 28ce300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/ensure_pi2_oc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def main():
if is_pi2:
oc_config = read_oc_params()
config_file = ConfigFile()
for (param, value) in oc_config.items():
for (param, value) in list(oc_config.items()):
config_file.set(param, value)
module.exit_json(changed=config_file.is_changed, msg="Is Pi2, ensured optimum CPU params.")
else:
Expand Down
4 changes: 2 additions & 2 deletions library/pi_boot_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def main():
err = ""

# sanitize from auto-typing in YAML
config_vals = dict((str(key), str(val)) for (key, val) in config_vals.items())
config_vals = dict((str(key), str(val)) for (key, val) in list(config_vals.items()))

for (key, val) in config_vals.items():
for (key, val) in list(config_vals.items()):
try:
modified = config.set(key, val)
if modified:
Expand Down

0 comments on commit 28ce300

Please sign in to comment.