From 359d3318bcff614a3b85e243b78a6535babde8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 10 Nov 2005 01:40:19 +0000 Subject: [PATCH] * fix: use AttributeNS thing correctly, pass autoxml tests --- pisi/xml/autoxml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pisi/xml/autoxml.py b/pisi/xml/autoxml.py index f80d9040..d5eb2891 100644 --- a/pisi/xml/autoxml.py +++ b/pisi/xml/autoxml.py @@ -87,7 +87,8 @@ class LocalText(dict): self.tag ) else: for node in nodes: - lang = getNodeAttribute(node, "xml:lang") + #lang = getNodeAttribute(node, "xml:lang") + lang = node.getAttributeNS(XML_NS, 'lang') c = getNodeText(node) if not c: errs.append(where + _("'%s' language of tag '%s' is empty") %