##// END OF EJS Templates
minirst: remove pointless transcoding
Matt Mackall -
r15121:0ad0ebe6 default
parent child Browse files
Show More
@@ -24,11 +24,9 b' from i18n import _'
24
24
25
25
26 def replace(text, substs):
26 def replace(text, substs):
27 utext = text.decode(encoding.encoding)
28 for f, t in substs:
27 for f, t in substs:
29 utext = utext.replace(f, t)
28 text = text.replace(f, t)
30 return utext.encode(encoding.encoding)
29 return text
31
32
30
33 _blockre = re.compile(r"\n(?:\s*\n)+")
31 _blockre = re.compile(r"\n(?:\s*\n)+")
34
32
General Comments 0
You need to be logged in to leave comments. Login now