Skip to content

Commit

Permalink
Merge pull request #2413 from graingert/ignore-any-exception-loading2to3
Browse files Browse the repository at this point in the history
ignore any exception when loading 2to3
  • Loading branch information
jaraco authored Oct 14, 2020
2 parents df9157c + cf9ad4f commit 2b52be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/2413.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Suppress EOF errors (and other exceptions) when importing lib2to3.
2 changes: 1 addition & 1 deletion setuptools/command/build_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

try:
from setuptools.lib2to3_ex import Mixin2to3
except ImportError:
except Exception:

class Mixin2to3:
def run_2to3(self, files, doctests=True):
Expand Down

0 comments on commit 2b52be2

Please sign in to comment.