diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-10-27 18:17:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-27 18:17:30 -0400 |
| commit | e3068ee28f37064d08c3f55557536454be47b0cd (patch) | |
| tree | a8893ab769146f3c1948dc8517aae9067ffd95f3 /pkg_resources/__init__.py | |
| parent | 230d1f74eea0dd84a022bc8cfd803256f16f3b97 (diff) | |
| parent | 43add1d3f5138e38adc4940647cc6eae94fb6123 (diff) | |
| download | external_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__.py | 2 |
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 |
