When opening a file known to be utf-8 on a script that needs to be Py2 & 3 compatible. Is there a nicer way to do it than this:
if sys.version_info < (3, 0):
long_description = open('README').read()
else:
long_description = open('README', encoding='utf-8').read()
Calling open('README').read()
on Python3.x causes encoding error for systems that default to ascii
.