[Lxml-checkins] r49955 - in lxml/trunk: . benchmark

scoder at codespeak.net scoder at codespeak.net
Thu Dec 20 17:32:10 CET 2007


Author: scoder
Date: Thu Dec 20 17:32:10 2007
New Revision: 49955

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/benchmark/bench_xpath.py
Log:
 r3158 at delle:  sbehnel | 2007-12-20 17:28:08 +0100
 API usage fix


Modified: lxml/trunk/benchmark/bench_xpath.py
==============================================================================
--- lxml/trunk/benchmark/bench_xpath.py	(original)
+++ lxml/trunk/benchmark/bench_xpath.py	Thu Dec 20 17:32:10 2007
@@ -61,7 +61,7 @@
         self.etree.FunctionNamespace("testns")["t"] = return_child
 
         try:
-            xpath = self.etree.XPath("test:t(.)", {"test":"testns"})
+            xpath = self.etree.XPath("test:t(.)", namespaces={"test":"testns"})
             for child in children:
                 xpath(child)
         finally:


More information about the lxml-checkins mailing list