diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-05-15 15:11:03 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-05-15 15:11:03 -0400 |
commit | 5dddf7f26295af7ab9cd5dbf1e2b4472d7739187 (patch) | |
tree | 706f6cd575083a757049d7d61384776028dbf875 | |
parent | e0fd60cf6d91805c4bb930de774c79d34fc5a84e (diff) | |
download | external_python_setuptools-5dddf7f26295af7ab9cd5dbf1e2b4472d7739187.tar.gz external_python_setuptools-5dddf7f26295af7ab9cd5dbf1e2b4472d7739187.tar.bz2 external_python_setuptools-5dddf7f26295af7ab9cd5dbf1e2b4472d7739187.zip |
Remove compatibility branch for Python 3.0-3.1.
-rw-r--r-- | pkg_resources/__init__.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index d5b0fe98..dbdc9b04 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -377,11 +377,7 @@ def get_build_platform(): XXX Currently this is the same as ``distutils.util.get_platform()``, but it needs some hacks for Linux and Mac OS X. """ - try: - # Python 2.7 or >=3.2 - from sysconfig import get_platform - except ImportError: - from distutils.util import get_platform + from sysconfig import get_platform plat = get_platform() if sys.platform == "darwin" and not plat.startswith('macosx-'): |