# HG changeset patch # User Matt Mackall # Date 2011-09-17 18:37:49 # Node ID 0ad0ebe678151800a7894c4bc753d143c495d5fc # Parent 8e848435673c083ffbd2707f1e2c4ac8d2b78576 minirst: remove pointless transcoding diff --git a/mercurial/minirst.py b/mercurial/minirst.py --- a/mercurial/minirst.py +++ b/mercurial/minirst.py @@ -24,11 +24,9 @@ from i18n import _ 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)+")