because docutils dpes stuff like
str(options['quote']), which tries to encode unicode strings using the ASCII codec in python 2.
a fix would be to replace all
str calls with this:
def unicode2str(unic): """encodes a unicode string on python 2 to a bytestring (str in python2) and leaves it be on python3 (because it’s already a str there)""" return unic.encode('utf-8') if sys.version_info.major < 3 else unic
bug #249 only occus after fixing this one
Log in to post a comment.