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:
parent
83293508d8
commit
1921d6d22b
@ -123,13 +123,13 @@ class MessageRegistryFile(base.ResourceBase):
|
|||||||
# language, in this case we can check if the registry language
|
# language, in this case we can check if the registry language
|
||||||
# starts with the requested language.
|
# starts with the requested language.
|
||||||
locations = [
|
locations = [
|
||||||
l for l in self.location
|
loc for loc in self.location
|
||||||
if l.language.lower().split('-', 1)[0] == language
|
if loc.language.lower().split('-', 1)[0] == language
|
||||||
or l.language == language
|
or loc.language == language
|
||||||
]
|
]
|
||||||
|
|
||||||
locations += [
|
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:
|
for location in locations:
|
||||||
if location.uri:
|
if location.uri:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user