From 1b25ac13bb9796f1f2ac5e400cb4fab339e52cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 14 Nov 2005 20:35:26 +0000 Subject: [PATCH] * fix error message --- pisi/pxml/xmlfilecdom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pisi/pxml/xmlfilecdom.py b/pisi/pxml/xmlfilecdom.py index 2f65dbbb..a0ea49e7 100644 --- a/pisi/pxml/xmlfilecdom.py +++ b/pisi/pxml/xmlfilecdom.py @@ -44,7 +44,6 @@ XML_NS = unicode(XML_NAMESPACE) import pisi class Error(pisi.Error): - "named this way because the class if mostly used with an import *" pass class XmlFile(object): @@ -71,7 +70,7 @@ class XmlFile(object): self.doc = ParsePath(path) return self.doc.documentElement except Ft.FtException, e: - raise Error(_("File '%s' has invalid XML:") % (path, str(e)) ) + raise Error(_("File '%s' has invalid XML: %s") % (path, str(e)) ) def writexml(self, path): f = file(path, 'w')