summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-10-14 19:57:39 -0400
committerGitHub <noreply@github.com>2020-10-14 19:57:39 -0400
commit2b52be2f4e26dd5865db2714cc7d7cb09b4b5b94 (patch)
tree6202adb95b38d918bc0f9c0197f573e20cb9d986
parentdf9157c53b1178e2fc0a6179196111d1ec17900b (diff)
parentcf9ad4f73a17e669d318187ce9a6cc2e72c3249e (diff)
downloadpython-setuptools-git-2b52be2f4e26dd5865db2714cc7d7cb09b4b5b94.tar.gz
Merge pull request #2413 from graingert/ignore-any-exception-loading2to3
ignore any exception when loading 2to3
-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):