Commits

Jason R. Coombs committed 484a5b3

Use compat for Python 3 detection

Comments (0)

Files changed (1)

setuptools/command/egg_info.py

 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
             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