Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/templater.py @ 3904:0dd07dd63db3
templater.py: fix obfuscate
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 16 Dec 2006 02:21:46 -0200 |
parents | 734e337cb816 |
children | 1063a631cb8e 66a3fe30f9fc |
line wrap: on
line diff
--- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -204,7 +204,7 @@ def nl2br(text): return text.replace('\n', '<br/>\n') def obfuscate(text): - text = unicode(text, 'utf-8', 'replace') + text = unicode(text, util._encoding, 'replace') return ''.join(['&#%d;' % ord(c) for c in text]) def domain(author):