diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-07 07:11:12 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-07 07:11:12 -0400 |
| commit | 58f0b3d1ef9d17d511cf027e87f7b87dc3be6bd9 (patch) | |
| tree | eb60746a1463aac30ace210770ed3150b078be96 /pkg_resources | |
| parent | aff64ae89e00e25fb3868bf528a14c18e7af0cf4 (diff) | |
| download | python-setuptools-git-58f0b3d1ef9d17d511cf027e87f7b87dc3be6bd9.tar.gz | |
Remove py2_warn, no longer needed as a SyntaxError is encountered before the warning can be issueed.
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/__init__.py | 1 | ||||
| -rw-r--r-- | pkg_resources/py2_warn.py | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index b9534903..5927ef0d 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -82,7 +82,6 @@ __import__('pkg_resources.extern.packaging.version') __import__('pkg_resources.extern.packaging.specifiers') __import__('pkg_resources.extern.packaging.requirements') __import__('pkg_resources.extern.packaging.markers') -__import__('pkg_resources.py2_warn') __metaclass__ = type diff --git a/pkg_resources/py2_warn.py b/pkg_resources/py2_warn.py deleted file mode 100644 index 6855aa24..00000000 --- a/pkg_resources/py2_warn.py +++ /dev/null @@ -1,16 +0,0 @@ -import sys -import warnings -import textwrap - - -msg = textwrap.dedent(""" - Encountered a version of Setuptools that no longer supports - this version of Python. Please head to - https://bit.ly/setuptools-py2-sunset for support. - """) - -pre = "Setuptools no longer works on Python 2\n" - -if sys.version_info < (3,): - warnings.warn(pre + "*" * 60 + msg + "*" * 60) - raise SystemExit(32) |
