mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 07:13:11 +02:00
...
This commit is contained in:
parent
fe32a39f0f
commit
62ebb5e3f6
1 changed files with 2 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ def __init__(self, prefix):
|
|||
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…
Reference in a new issue