diff --git a/po/update_po.py b/po/update_po.py index 2feac19b5..fc483569d 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -169,7 +169,10 @@ def TipsParse(filename, mark): tips = open('../data/tips.xml.in.h', 'w') marklist = root.iter(mark) for key in marklist: - tip = ElementTree.tostring(key, encoding="UTF-8") + if sys.version_info[0] < 3: + tip = ElementTree.tostring(key, encoding="UTF-8") + else: # no python3 support yet + return tip = tip.replace("", "") tip = tip.replace('\n<_tip number="%(number)s">' % key.attrib, "") tip = tip.replace("
", "
")