review/tests/sample_data_utf8.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 = [
    { u'filé'.encode('UTF-8'): u'oné\ntwó\nthrée'.encode('UTF-8'), },
    { u'filé'.encode('UTF-8'): u'óne\ntwo\nthreé'.encode('UTF-8'), },
]