mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
This commit is contained in:
parent
99ef6af5a9
commit
5e8399a4f1
@ -88,10 +88,7 @@ import codecs
|
|||||||
import types
|
import types
|
||||||
import re
|
import re
|
||||||
import libprs500.ebooks.sgmllib as sgmllib
|
import libprs500.ebooks.sgmllib as sgmllib
|
||||||
try:
|
from htmlentitydefs import name2codepoint
|
||||||
from htmlentitydefs import name2codepoint
|
|
||||||
except ImportError:
|
|
||||||
name2codepoint = {}
|
|
||||||
|
|
||||||
#This hack makes Beautiful Soup able to parse XML with namespaces
|
#This hack makes Beautiful Soup able to parse XML with namespaces
|
||||||
sgmllib.tagfind = re.compile('[a-zA-Z][-_.:a-zA-Z0-9]*')
|
sgmllib.tagfind = re.compile('[a-zA-Z][-_.:a-zA-Z0-9]*')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user