Updated tools

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-12-23 19:56:51 +00:00
parent 1066fece29
commit 3798e298a4
2 changed files with 9 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ def main(args):
def GetAttr(node, name):
path = "./attributelist/attribute[@name='%s']/@value" % name
n = node.xpathEval(path)
n = node.xpathEval2(path)
if len(n):
return n[0].content
else:
@@ -148,7 +148,7 @@ def processXML(xmlfile, modname, swigFile, pyFile):
topnode = libxml2.parseFile(xmlfile).children
# remove any import nodes as we don't need to do renamers for symbols found therein
imports = topnode.xpathEval("*/import")
imports = topnode.xpathEval2("*/import")
for n in imports:
n.unlinkNode()
n.freeNode()