change ambiguous variable name

pycodestyle reports this as an ambiguous variable name.

Change-Id: Idf2a37253a8872ebf9e2e26b08804f68d5d7a245
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein 2024-11-09 09:18:03 -05:00
parent 83293508d8
commit 1921d6d22b
No known key found for this signature in database

View File

@ -123,13 +123,13 @@ class MessageRegistryFile(base.ResourceBase):
# language, in this case we can check if the registry language
# starts with the requested language.
locations = [
l for l in self.location
if l.language.lower().split('-', 1)[0] == language
or l.language == language
loc for loc in self.location
if loc.language.lower().split('-', 1)[0] == language
or loc.language == language
]
locations += [
l for l in self.location if l.language.lower() == 'default']
loc for loc in self.location if loc.language.lower() == 'default']
for location in locations:
if location.uri: