# HG changeset patch # User Matt Mackall # Date 1316284669 18000 # Node ID 0ad0ebe678151800a7894c4bc753d143c495d5fc # Parent 8e848435673c083ffbd2707f1e2c4ac8d2b78576 minirst: remove pointless transcoding diff -r 8e848435673c -r 0ad0ebe67815 mercurial/minirst.py --- 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)+")