Show More
@@ -24,11 +24,9 b' from i18n import _' | |||
|
24 | 24 | |
|
25 | 25 | |
|
26 | 26 | def replace(text, substs): |
|
27 | utext = text.decode(encoding.encoding) | |
|
28 | 27 | for f, t in substs: |
|
29 |
|
|
|
30 | return utext.encode(encoding.encoding) | |
|
31 | ||
|
28 | text = text.replace(f, t) | |
|
29 | return text | |
|
32 | 30 | |
|
33 | 31 | _blockre = re.compile(r"\n(?:\s*\n)+") |
|
34 | 32 |
General Comments 0
You need to be logged in to leave comments.
Login now