From 19eafc57558d8efef7ee5c3aecb4f635eb82980d Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 23 Jan 2019 12:44:08 +0000 Subject: [PATCH] issue #477: set().union(a, b, ..) unsupported on Py2.4. --- mitogen/master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/master.py b/mitogen/master.py index efadfffb..be92d280 100644 --- a/mitogen/master.py +++ b/mitogen/master.py @@ -661,7 +661,7 @@ class ModuleFinder(object): while stack: name = stack.pop(0) 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.discard(fullname)