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

scoder at codespeak.net scoder at codespeak.net
Thu Nov 2 20:54:46 CET 2006


Author: scoder
Date: Thu Nov  2 20:54:44 2006
New Revision: 34075

Modified:
   lxml/trunk/src/lxml/xslt.pxi
Log:
small optimisations

Modified: lxml/trunk/src/lxml/xslt.pxi
==============================================================================
--- lxml/trunk/src/lxml/xslt.pxi	(original)
+++ lxml/trunk/src/lxml/xslt.pxi	Thu Nov  2 20:54:44 2006
@@ -450,7 +450,7 @@
         return _xsltResultTreeFactory(result_doc, self, profile_doc)
 
     def apply(self, _input, profile_run=False, **_kw):
-        return self.__call__(_input, profile_run, **_kw)
+        return self(_input, profile_run, **_kw)
 
     def tostring(self, _ElementTree result_tree):
         """Save result doc to string based on stylesheet output method.
@@ -507,7 +507,7 @@
         """Return an ElementTree with profiling data for the stylesheet run.
         """
         def __get__(self):
-            cdef _Element root
+            cdef object root
             if self._profile is None:
                 return None
             root = self._profile.getroot()


More information about the lxml-checkins mailing list