mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-30 01:15:59 +01:00
...
This commit is contained in:
parent
60fe8b69f6
commit
15b0df028e
1 changed files with 4 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
__copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import copy
|
||||
import copy, logging
|
||||
from functools import partial
|
||||
from collections import defaultdict, namedtuple
|
||||
from io import BytesIO
|
||||
|
|
@ -65,6 +65,9 @@ def dup_data(self):
|
|||
''' Duplicate data so that any changes we make to markup/CSS only
|
||||
affect KF8 output and not MOBI 6 output '''
|
||||
self._data_cache = {}
|
||||
# Suppress cssutils logging output as it is duplicated anyway earlier
|
||||
# in the pipeline
|
||||
cssutils.log.setLevel(logging.CRITICAL)
|
||||
for item in self.oeb.manifest:
|
||||
if item.media_type in XML_DOCS:
|
||||
self._data_cache[item.href] = copy.deepcopy(item.data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue