summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/mkhtml.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/mkhtml.py b/doc/mkhtml.py
index 865e3968..1a0cf532 100644
--- a/doc/mkhtml.py
+++ b/doc/mkhtml.py
@@ -20,13 +20,13 @@ RST2HTML_OPTIONS = " ".join([
])
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