This commit is contained in:
Kovid Goyal 2014-04-28 18:47:10 +05:30
parent 5736f17735
commit 220daf93f6

View File

@ -125,8 +125,8 @@ def iterlinks(root, find_links_in_css=True):
if tag == XHTML('object'): if tag == XHTML('object'):
codebase = None codebase = None
## <object> tags have attributes that are relative to # <object> tags have attributes that are relative to
## codebase # codebase
if 'codebase' in attribs: if 'codebase' in attribs:
codebase = el.get('codebase') codebase = el.get('codebase')
yield (el, 'codebase', codebase, 0) yield (el, 'codebase', codebase, 0)
@ -604,8 +604,8 @@ class Metadata(object):
allowed = self.allowed allowed = self.allowed
if allowed is not None and term not in allowed: if allowed is not None and term not in allowed:
raise AttributeError( raise AttributeError(
'attribute %r not valid for metadata term %r' 'attribute %r not valid for metadata term %r' % (
% (self.attr(term), barename(obj.term))) self.attr(term), barename(obj.term)))
return self.attr(term) return self.attr(term)
def __get__(self, obj, cls): def __get__(self, obj, cls):