[Lxml-checkins] r49929 - in lxml/trunk: . doc
scoder at codespeak.net
scoder at codespeak.net
Wed Dec 19 12:34:34 CET 2007
Author: scoder
Date: Wed Dec 19 12:34:33 2007
New Revision: 49929
Modified:
lxml/trunk/ (props changed)
lxml/trunk/doc/mkhtml.py
Log:
r3147 at delle: sbehnel | 2007-12-19 12:34:29 +0100
fix API usage
Modified: lxml/trunk/doc/mkhtml.py
==============================================================================
--- lxml/trunk/doc/mkhtml.py (original)
+++ lxml/trunk/doc/mkhtml.py Wed Dec 19 12:34:33 2007
@@ -20,13 +20,13 @@
])
find_title = XPath("/h:html/h:head/h:title/text()",
- {"h" : "http://www.w3.org/1999/xhtml"})
+ namespaces={"h" : "http://www.w3.org/1999/xhtml"})
find_headings = XPath("//h:h1[not(@class)]/h:a/text()",
- {"h" : "http://www.w3.org/1999/xhtml"})
+ namespaces={"h" : "http://www.w3.org/1999/xhtml"})
find_menu = XPath("//h:ul[@id=$name]",
- {"h" : "http://www.w3.org/1999/xhtml"})
+ namespaces={"h" : "http://www.w3.org/1999/xhtml"})
find_page_end = XPath("/h:html/h:body/h:div[last()]",
- {"h" : "http://www.w3.org/1999/xhtml"})
+ namespaces={"h" : "http://www.w3.org/1999/xhtml"})
replace_invalid = re.compile(r'[-_/.\s\\]').sub
More information about the lxml-checkins
mailing list