From 0a646d0ca9d815d240e48cc50e10b72a09b529a4 Mon Sep 17 00:00:00 2001 From: Walter Doerwald Date: Sun, 4 Dec 2011 13:54:08 +0100 Subject: Add a C type to the iteration variable in _DTDAttributeDecl.tree. --- src/lxml/dtd.pxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxml/dtd.pxi b/src/lxml/dtd.pxi index 15532cb0..2679196b 100644 --- a/src/lxml/dtd.pxi +++ b/src/lxml/dtd.pxi @@ -149,7 +149,7 @@ cdef class _DTDAttributeDecl: property tree: def __get__(self): _assertValidDTDNode(self, self._c_node) - c_node = self._c_node.tree + cdef tree.xmlEnumeration *c_node = self._c_node.tree while c_node is not NULL: yield funicode(c_node.name) c_node = c_node.next -- cgit v1.2.1