mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fe32a39f0f
commit
62ebb5e3f6
@ -30,6 +30,7 @@ class NamespacedHTMLPresent(ValueError):
|
||||
ValueError.__init__(self, prefix)
|
||||
self.prefix = prefix
|
||||
|
||||
# Nodes {{{
|
||||
def create_lxml_context():
|
||||
parser = XMLParser(no_network=True)
|
||||
parser.set_element_class_lookup(ElementDefaultClassLookup(element=Element, comment=Comment))
|
||||
@ -212,6 +213,7 @@ class DocType(object):
|
||||
def __init__(self, name, public_id, system_id):
|
||||
self.text = self.name = name
|
||||
self.public_id, self.system_id = public_id, system_id
|
||||
# }}}
|
||||
|
||||
def process_attribs(attrs, nsmap):
|
||||
attribs = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user