mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Renaming locals to copied_locals
"locals" is something that comes with Python. Better renaming it.
This commit is contained in:
parent
429e54bc8a
commit
6993e9e695
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue