Renaming locals to copied_locals

"locals" is something that comes with Python. Better renaming it.
This commit is contained in:
Thomas-Karl Pietrowski 2016-03-14 17:16:23 +01:00
parent 429e54bc8a
commit 6993e9e695

View file

@ -51,10 +51,10 @@ class LegacyProfileReader(ProfileReader):
# \return A set of local variables, one for each setting in the legacy
# profile.
def prepareLocals(self, config_parser, config_section, defaults):
locals = defaults.copy() #Don't edit the original!
copied_locals = defaults.copy() #Don't edit the original!
for option in config_parser.options(config_section):
locals[option] = config_parser.get(config_section, option)
return locals
copied_locals[option] = config_parser.get(config_section, option)
return copied_locals
## Reads a legacy Cura profile from a file and returns it.
#