Skip to content

Commit 4b4c24d

Browse files
Linting fixes.
1 parent a7b4ed8 commit 4b4c24d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/pyff/repo.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,19 @@ def lookup(self, member, xp=None, store=None):
7777
if store is None:
7878
store = self.store
7979

80-
l = self._lookup(member, store=store)
81-
if hasattr(l, 'tag'):
82-
l = [l]
83-
elif hasattr(l, '__iter__'):
84-
l = list(l)
80+
etree = self._lookup(member, store=store)
81+
if hasattr(etree, 'tag'):
82+
etree = [etree]
83+
elif hasattr(etree, '__iter__'):
84+
etree = list(etree)
8585

8686
if xp is None:
87-
return l
87+
return etree
8888
else:
89-
log.debug("filtering %d entities using xpath %s" % (len(l), xp))
90-
t = entitiesdescriptor(l, 'dummy', lookup_fn=self.lookup)
89+
log.debug("filtering %d entities using xpath %s" % (len(etree), xp))
90+
t = entitiesdescriptor(etree, 'dummy', lookup_fn=self.lookup)
9191
if t is None:
9292
return []
93-
l = root(t).xpath(xp, namespaces=NS, smart_strings=False)
94-
log.debug("got %d entities after filtering" % len(l))
95-
return l
93+
etree = root(t).xpath(xp, namespaces=NS, smart_strings=False)
94+
log.debug("got %d entities after filtering" % len(etree))
95+
return etree

0 commit comments

Comments
 (0)