mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 07:43:15 +02:00
...
This commit is contained in:
parent
bad82f3daa
commit
63727bc608
1 changed files with 3 additions and 0 deletions
|
|
@ -775,6 +775,7 @@ def __repr__(self):
|
|||
return u'Item(id=%r, href=%r, media_type=%r)' \
|
||||
% (self.id, self.href, self.media_type)
|
||||
|
||||
# Parsing {{{
|
||||
def _parse_xml(self, data):
|
||||
data = xml_to_unicode(data, strip_encoding_pats=True,
|
||||
assume_utf8=True, resolve_entities=True)[0]
|
||||
|
|
@ -1035,6 +1036,8 @@ def _fetch_css(self, path):
|
|||
data = item.data.cssText
|
||||
return ('utf-8', data)
|
||||
|
||||
# }}}
|
||||
|
||||
@dynamic_property
|
||||
def data(self):
|
||||
doc = """Provides MIME type sensitive access to the manifest
|
||||
|
|
|
|||
Loading…
Reference in a new issue