author | Matt Mackall <mpm@selenic.com> |
Sat, 17 Sep 2011 13:37:49 -0500 | |
changeset 15121 | 0ad0ebe67815 |
parent 15120 | 8e848435673c |
child 15122 | efa213b14ec0 |
--- a/mercurial/minirst.py Sat Sep 17 13:37:47 2011 -0500 +++ b/mercurial/minirst.py Sat Sep 17 13:37:49 2011 -0500 @@ -24,11 +24,9 @@ def replace(text, substs): - utext = text.decode(encoding.encoding) for f, t in substs: - utext = utext.replace(f, t) - return utext.encode(encoding.encoding) - + text = text.replace(f, t) + return text _blockre = re.compile(r"\n(?:\s*\n)+")