aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-27 13:32:06 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-11-27 13:32:06 -0500
commitdf8f2c2c45fde489e92932e9a4094075566b617d (patch)
tree6ffba31c85949db507a204c652de923f5c5f2299 /setuptools/command/upload_docs.py
parent151c018dbea53c09c07f0483ffb05118cb6c51f4 (diff)
downloadexternal_python_setuptools-df8f2c2c45fde489e92932e9a4094075566b617d.tar.gz
external_python_setuptools-df8f2c2c45fde489e92932e9a4094075566b617d.tar.bz2
external_python_setuptools-df8f2c2c45fde489e92932e9a4094075566b617d.zip
Use PY3 from compat module
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r--setuptools/command/upload_docs.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index 4ad3433e..ef4cf806 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -19,11 +19,9 @@ from distutils import log
from distutils.errors import DistutilsOptionError
from distutils.command.upload import upload
-from setuptools.compat import httplib, urlparse, unicode, iteritems
+from setuptools.compat import httplib, urlparse, unicode, iteritems, PY3
-_IS_PYTHON3 = sys.version > '3'
-
-if _IS_PYTHON3:
+if PY3:
errors = 'surrogateescape'
else:
errors = 'strict'