diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-16 00:29:36 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-16 00:29:36 -0400 |
| commit | a35ca3bb2f7e025270a7b305c133b57f917e0ef2 (patch) | |
| tree | c8a9850af972810d1fce844b1281affd9fceca47 /setuptools/command | |
| parent | fb2038bb99b46b8ec92ad046b79d21c182e718a4 (diff) | |
| download | python-setuptools-git-a35ca3bb2f7e025270a7b305c133b57f917e0ef2.tar.gz | |
Use compat for Python 3 detection
Diffstat (limited to 'setuptools/command')
| -rwxr-xr-x | setuptools/command/egg_info.py | 4 |
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 |
