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.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index a69958d8..8ee35cb0 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -21,10 +21,7 @@ from distutils.command.upload import upload
from setuptools.compat import httplib, urlparse, unicode, iteritems, PY3
-if PY3:
- errors = 'surrogateescape'
-else:
- errors = 'strict'
+errors = 'surrogateescape' if PY3 else 'strict'
# This is not just a replacement for byte literals