aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources/__init__.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-10-27 18:17:30 -0400
committerGitHub <noreply@github.com>2019-10-27 18:17:30 -0400
commite3068ee28f37064d08c3f55557536454be47b0cd (patch)
treea8893ab769146f3c1948dc8517aae9067ffd95f3 /pkg_resources/__init__.py
parent230d1f74eea0dd84a022bc8cfd803256f16f3b97 (diff)
parent43add1d3f5138e38adc4940647cc6eae94fb6123 (diff)
downloadexternal_python_setuptools-e3068ee28f37064d08c3f55557536454be47b0cd.tar.gz
external_python_setuptools-e3068ee28f37064d08c3f55557536454be47b0cd.tar.bz2
external_python_setuptools-e3068ee28f37064d08c3f55557536454be47b0cd.zip
Merge pull request #1824 from asottile/python310
Fixes for python3.10
Diffstat (limited to 'pkg_resources/__init__.py')
-rw-r--r--pkg_resources/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index 1f170cfd..fb68813e 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -333,7 +333,7 @@ class UnknownExtra(ResolutionError):
_provider_factories = {}
-PY_MAJOR = sys.version[:3]
+PY_MAJOR = '{}.{}'.format(*sys.version_info)
EGG_DIST = 3
BINARY_DIST = 2
SOURCE_DIST = 1