From 83e98596f1532628bff5d122735577d9615098e5 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Tue, 9 Jun 2009 01:43:36 +0200 Subject: [PATCH] Fix a bug in Python attribute handling. --- python/xmltemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/xmltemplate.py b/python/xmltemplate.py index 1622592..eb50625 100644 --- a/python/xmltemplate.py +++ b/python/xmltemplate.py @@ -35,7 +35,7 @@ def process(node, obj, clean = True): attrs_to_remove = [] if not attrs is None: for i in range(attrs.length): - attr = attrs.item(0) + attr = attrs.item(i) if attr.namespaceURI == "http://template.sesse.net/" and attr.localName == "id": id = attr.value if clean: -- 2.39.2