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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index e07b885d..12bc916b 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -25,7 +25,9 @@ except ImportError:
from setuptools.compat import httplib, urlparse, unicode, iteritems
-if sys.version_info >= (3,):
+_IS_PYTHON3 = sys.version > '3'
+
+if _IS_PYTHON3:
errors = 'surrogateescape'
else:
errors = 'strict'