issue #477: set().union(a, b, ..) unsupported on Py2.4.

issue510
David Wilson 6 years ago
parent e460d648d5
commit 19eafc5755

@ -661,7 +661,7 @@ class ModuleFinder(object):
while stack: while stack:
name = stack.pop(0) name = stack.pop(0)
names = self.find_related_imports(name) names = self.find_related_imports(name)
stack.extend(set(names).difference(found, stack)) stack.extend(set(names).difference(set(found).union(stack)))
found.update(names) found.update(names)
found.discard(fullname) found.discard(fullname)

Loading…
Cancel
Save