aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-27 13:38:46 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-11-27 13:38:46 -0500
commitbcf0e76db414d1c8f7a671289c642a7b4a4b77e0 (patch)
treef32e423ed5d1ac8803fe6613627466a546cccff3 /setuptools/command/upload_docs.py
parent76b703645976e4ca41e00fa7ebafa36d6805c7e0 (diff)
downloadexternal_python_setuptools-bcf0e76db414d1c8f7a671289c642a7b4a4b77e0.tar.gz
external_python_setuptools-bcf0e76db414d1c8f7a671289c642a7b4a4b77e0.tar.bz2
external_python_setuptools-bcf0e76db414d1c8f7a671289c642a7b4a4b77e0.zip
Use ternary operator to select encoding error behavior.
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