From db39793d811a819a2d15a11b8088dbeb8182d02d Mon Sep 17 00:00:00 2001 From: William Douglas Date: Tue, 19 Oct 2021 11:56:27 -0700 Subject: [PATCH] config: Avoid shadowing local variable with loop temporary Signed-off-by: William Douglas --- autospec/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autospec/config.py b/autospec/config.py index 5a08912..ae3e50a 100644 --- a/autospec/config.py +++ b/autospec/config.py @@ -879,9 +879,9 @@ class Config(object): # Parse the version-specific patch lists update_security_sensitive = False - for version in self.versions: - self.verpatches[version] = self.read_conf_file(os.path.join(self.download_path, '.'.join(['series', version]))) - if any(p.lower().startswith('cve-') for p in self.verpatches[version]): + for versionp in self.versions: + self.verpatches[versionp] = self.read_conf_file(os.path.join(self.download_path, '.'.join(['series', versionp]))) + if any(p.lower().startswith('cve-') for p in self.verpatches[versionp]): update_security_sensitive = True if any(p.lower().startswith('cve-') for p in self.patches):