From 6993e9e695ac4634df90bf31a9eab5660b116743 Mon Sep 17 00:00:00 2001 From: Thomas-Karl Pietrowski Date: Mon, 14 Mar 2016 17:16:23 +0100 Subject: [PATCH] Renaming locals to copied_locals "locals" is something that comes with Python. Better renaming it. --- plugins/LegacyProfileReader/LegacyProfileReader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/LegacyProfileReader/LegacyProfileReader.py b/plugins/LegacyProfileReader/LegacyProfileReader.py index 661646bf64..3daf360ee6 100644 --- a/plugins/LegacyProfileReader/LegacyProfileReader.py +++ b/plugins/LegacyProfileReader/LegacyProfileReader.py @@ -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. #