repos: Silence pycodestyle error

New pycodestyle version, new warning: "l" might be confused with "1".

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2020-05-19 07:53:02 +02:00
parent 68809708e8
commit d58a291513

View File

@ -53,7 +53,7 @@ class Repo:
if item == 'layers':
if not self._layers:
return [self.path]
return [self.path + '/' + l for l in self._layers]
return [self.path + '/' + layer for layer in self._layers]
elif item == 'qualified_name':
url = urlparse(self.url)
return ('{url.netloc}{url.path}'