Commit bcf0e76d authored by Jason R. Coombs's avatar Jason R. Coombs

Use ternary operator to select encoding error behavior.

parent 76b70364
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment