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

scoder at codespeak.net scoder at codespeak.net
Mon Sep 3 13:36:00 CEST 2007


Author: scoder
Date: Mon Sep  3 13:35:58 2007
New Revision: 46267

Modified:
   lxml/trunk/src/lxml/parser.pxi
Log:
ET 1.3 compatible parser version

Modified: lxml/trunk/src/lxml/parser.pxi
==============================================================================
--- lxml/trunk/src/lxml/parser.pxi	(original)
+++ lxml/trunk/src/lxml/parser.pxi	Mon Sep  3 13:35:58 2007
@@ -484,6 +484,11 @@
         return _makeElement(_tag, NULL, None, self, None, None,
                             attrib, nsmap, _extra)
 
+    property version:
+        "The version of the underlying XML parser."
+        def __get__(self):
+            return "libxml2 %d.%d.%d" % LIBXML_VERSION
+
     cdef xmlDoc* _parseUnicodeDoc(self, utext, char* c_filename) except NULL:
         """Parse unicode document, share dictionary if possible.
         """


More information about the lxml-checkins mailing list