mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-28 07:44:03 +01:00
pep8
This commit is contained in:
parent
5736f17735
commit
220daf93f6
1 changed files with 4 additions and 4 deletions
|
|
@ -125,8 +125,8 @@ def iterlinks(root, find_links_in_css=True):
|
|||
|
||||
if tag == XHTML('object'):
|
||||
codebase = None
|
||||
## <object> tags have attributes that are relative to
|
||||
## codebase
|
||||
# <object> tags have attributes that are relative to
|
||||
# codebase
|
||||
if 'codebase' in attribs:
|
||||
codebase = el.get('codebase')
|
||||
yield (el, 'codebase', codebase, 0)
|
||||
|
|
@ -604,8 +604,8 @@ def term_attr(self, obj):
|
|||
allowed = self.allowed
|
||||
if allowed is not None and term not in allowed:
|
||||
raise AttributeError(
|
||||
'attribute %r not valid for metadata term %r'
|
||||
% (self.attr(term), barename(obj.term)))
|
||||
'attribute %r not valid for metadata term %r' % (
|
||||
self.attr(term), barename(obj.term)))
|
||||
return self.attr(term)
|
||||
|
||||
def __get__(self, obj, cls):
|
||||
|
|
|
|||
Loading…
Reference in a new issue