review/tests/sample_data_latin1.py @ b443b42afe6f issue-90
Convert unicode to ascii for mercurial API. Mercurial API can't work with python's Unicode objects. Details http://mercurial.selenic.com/wiki/EncodingStrategy#Unicode_strings
| author | Alexander Stepanenko <olexander314@gmail.com> |
|---|---|
| date | Mon, 15 Dec 2014 02:06:13 +0300 |
| parents | cada9aab8b6f |
| children | (none) |
# coding=utf-8 # log = [ # TODO: Figure out how to make this work. # I hate you, Python. #{ u'filé'.encode('latin-1'): u'oné\ntwó\nthrée'.encode('latin-1'), }, #{ u'filé'.encode('latin-1'): u'óne\ntwo\nthreé'.encode('latin-1'), }, { u'file'.encode('latin-1'): u'oné\ntwó\nthrée'.encode('latin-1'), }, { u'file'.encode('latin-1'): u'óne\ntwo\nthreé'.encode('latin-1'), }, ]