From: Luke Kenneth Casson Leighton Date: Fri, 23 Mar 2018 05:05:56 +0000 (+0000) Subject: pycodestyle warned variable name l was ambiguous X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=773f350eb28e24ff5b0bca1566b08e0eb60f978c;p=pinmux.git pycodestyle warned variable name l was ambiguous --- diff --git a/src/interface_decl.py b/src/interface_decl.py index 850f5f8..81fcb56 100644 --- a/src/interface_decl.py +++ b/src/interface_decl.py @@ -189,11 +189,11 @@ class Interfaces(UserDict): self.ifacecount = [] UserDict.__init__(self, {}) with open('interfaces.txt', 'r') as ifile: - for l in ifile.readlines(): - l = l.strip() - l = l.split("\t") - name = l[0] - count = int(l[1]) + for ln in ifile.readlines(): + ln = ln.strip() + ln = ln.split("\t") + name = ln[0] + count = int(ln[1]) spec = self.read_spec(name) self.ifaceadd(name, count, Interface(name, spec)) @@ -206,13 +206,13 @@ class Interfaces(UserDict): def read_spec(self, name): spec = [] with open('%s.txt' % name, 'r') as sfile: - for l in sfile.readlines(): - l = l.strip() - l = l.split("\t") - d = {'name': l[0]} - if l[1] == 'out': + for ln in sfile.readlines(): + ln = ln.strip() + ln = ln.split("\t") + d = {'name': ln[0]} + if ln[1] == 'out': d['action'] = True - elif l[1] == 'inout': + elif ln[1] == 'inout': d['outen'] = True spec.append(d) return spec