From 1e0d34dc4ff8c188df8af1f82744744273d4049c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Fri, 20 Mar 2015 09:13:24 +0100 Subject: [PATCH] tweak, polish argument for encoding --- po/update_po.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/update_po.py b/po/update_po.py index 6c710af21..594402455 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -174,7 +174,7 @@ def TipsParse(filename, mark): tip = tip.replace("", "") tip = tip.replace('\n<_tip number="%(number)s">' % key.attrib, "") else: # python3 support - tip = tip.decode(encoding="UTF-8") + tip = tip.decode("utf-8") tip = tip.replace('<_tip number="%(number)s">' % key.attrib, "") tip = tip.replace("
", "
") #tip = tip.replace("\n\n", "\n") # special case tip 7