]> git.parisson.com Git - telemeta.git/commitdiff
cleanup
authoryomguy <yomguy@parisson.com>
Tue, 8 Jan 2013 08:28:23 +0000 (09:28 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 8 Jan 2013 08:28:23 +0000 (09:28 +0100)
telemeta/util/xmltodict2.py

index 35f7ab1f7ec8c9b28afa028d8acd681f3f8299ab..10db138912a33a5abd234542d9314366b24982f3 100644 (file)
@@ -173,17 +173,17 @@ def xmltodict(xml, attsToSkip=[], addCodeFile=False):
                try:
                        ret = parser.ParseFromFile(xml)
                except expat.ExpatError, e:
-                       errmsg = _("The XML in '%s' is not well-formed and cannot be parsed: %s") % (xml, e)
+                       errmsg = "The XML in '%s' is not well-formed and cannot be parsed: %s" % (xml, e)
        else:
                # argument must have been raw xml:
                if not xml.strip().startswith("<?xml "):
                        # it's a bad file name
-                       errmsg = _("The file '%s' could not be found") % xml
+                       errmsg = "The file '%s' could not be found" % xml
                else:
                        try:
                                ret = parser.Parse(xml)
                        except expat.ExpatError:
-                               errmsg = _("An invalid XML string was encountered")
+                               errmsg = "An invalid XML string was encountered"
        if errmsg:
                raise dabo.dException.XmlException, errmsg
        if addCodeFile and isPath: