[Lxml-checkins] r40177 - lxml/trunk/src/lxml

scoder at codespeak.net scoder at codespeak.net
Sat Mar 10 20:05:37 CET 2007


Author: scoder
Date: Sat Mar 10 20:05:36 2007
New Revision: 40177

Modified:
   lxml/trunk/src/lxml/xpath.pxi
Log:
fix for compile problem

Modified: lxml/trunk/src/lxml/xpath.pxi
==============================================================================
--- lxml/trunk/src/lxml/xpath.pxi	(original)
+++ lxml/trunk/src/lxml/xpath.pxi	Sat Mar 10 20:05:36 2007
@@ -143,9 +143,8 @@
     def registerNamespaces(self, namespaces):
         """Register a prefix -> uri dict.
         """
-        add = self._context.addNamespace
         for prefix, uri in namespaces.items():
-            add(prefix, uri)
+            self._context.addNamespace(prefix, uri)
 
     def __call__(self, _path, **_variables):
         """Evaluate an XPath expression on the document.


More information about the lxml-checkins mailing list