Skip to content

Commit 5dddf7f

Browse files
committed
Remove compatibility branch for Python 3.0-3.1.
1 parent e0fd60c commit 5dddf7f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg_resources/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,7 @@ def get_build_platform():
377377
XXX Currently this is the same as ``distutils.util.get_platform()``, but it
378378
needs some hacks for Linux and Mac OS X.
379379
"""
380-
try:
381-
# Python 2.7 or >=3.2
382-
from sysconfig import get_platform
383-
except ImportError:
384-
from distutils.util import get_platform
380+
from sysconfig import get_platform
385381

386382
plat = get_platform()
387383
if sys.platform == "darwin" and not plat.startswith('macosx-'):

0 commit comments

Comments
 (0)