summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/2413.misc.rst1
-rw-r--r--setuptools/command/build_py.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/2413.misc.rst b/changelog.d/2413.misc.rst
new file mode 100644
index 00000000..eaef9c8e
--- /dev/null
+++ b/changelog.d/2413.misc.rst
@@ -0,0 +1 @@
+Suppress EOF errors (and other exceptions) when importing lib2to3.
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py
index 4709679b..b30aa129 100644
--- a/setuptools/command/build_py.py
+++ b/setuptools/command/build_py.py
@@ -11,7 +11,7 @@ import stat
try:
from setuptools.lib2to3_ex import Mixin2to3
-except ImportError:
+except Exception:
class Mixin2to3:
def run_2to3(self, files, doctests=True):