summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-16 00:29:36 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-05-16 00:29:36 -0400
commita35ca3bb2f7e025270a7b305c133b57f917e0ef2 (patch)
treec8a9850af972810d1fce844b1281affd9fceca47 /setuptools/command
parentfb2038bb99b46b8ec92ad046b79d21c182e718a4 (diff)
downloadpython-setuptools-git-a35ca3bb2f7e025270a7b305c133b57f917e0ef2.tar.gz
Use compat for Python 3 detection
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/egg_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 88027dd0..50c2096a 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -10,7 +10,7 @@ from setuptools import Command
import distutils.errors
from distutils import log
from setuptools.command.sdist import sdist
-from setuptools.compat import basestring
+from setuptools.compat import basestring, PY3
from setuptools import svn_utils
from distutils.util import convert_path
from distutils.filelist import FileList as _FileList
@@ -213,7 +213,7 @@ class FileList(_FileList):
self.files.append(path)
def _safe_path(self, path):
- if sys.version_info >= (3,):
+ if PY3:
try:
if os.path.exists(path) or os.path.exists(path.encode('utf-8')):
return True