mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
VersionUpgrade.py: Use enumerate
Use enumerate instead of range(len
This commit is contained in:
parent
830adcea1b
commit
efe3bdb83e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class VersionUpgrade22to24(VersionUpgrade):
|
||||||
|
|
||||||
config.remove_option("general", "containers")
|
config.remove_option("general", "containers")
|
||||||
|
|
||||||
for idx in range(len(container_list)):
|
for idx, _ in enumerate(container_list):
|
||||||
config.set("containers", str(idx), container_list[idx])
|
config.set("containers", str(idx), container_list[idx])
|
||||||
|
|
||||||
output = io.StringIO()
|
output = io.StringIO()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue