aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
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'