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

scoder at codespeak.net scoder at codespeak.net
Mon Jul 2 10:30:20 CEST 2007


Author: scoder
Date: Mon Jul  2 10:30:19 2007
New Revision: 44658

Modified:
   lxml/trunk/src/lxml/xpath.pxi
Log:
let repr(XPath()) return original path expression

Modified: lxml/trunk/src/lxml/xpath.pxi
==============================================================================
--- lxml/trunk/src/lxml/xpath.pxi	(original)
+++ lxml/trunk/src/lxml/xpath.pxi	Mon Jul  2 10:30:19 2007
@@ -392,6 +392,9 @@
         if self._xpath is not NULL:
             xpath.xmlXPathFreeCompExpr(self._xpath)
 
+    def __repr__(self):
+        return path
+
 
 cdef object _replace_strings
 cdef object _find_namespaces


More information about the lxml-checkins mailing list