Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hhhrrrttt222111
GitHub Repository: hhhrrrttt222111/Dorkify
Path: blob/master/venv/Lib/site-packages/pkg_resources/py2_warn.py
811 views
1
import sys
2
import warnings
3
import textwrap
4
5
6
msg = textwrap.dedent("""
7
Encountered a version of Setuptools that no longer supports
8
this version of Python. Please head to
9
https://bit.ly/setuptools-py2-sunset for support.
10
""")
11
12
pre = "Setuptools no longer works on Python 2\n"
13
14
if sys.version_info < (3,):
15
warnings.warn(pre + "*" * 60 + msg + "*" * 60)
16
raise SystemExit(32)
17
18