PEP8
This commit is contained in:
parent
853f6cdc0c
commit
1421e402e1
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ def info(epub):
|
|||
contents.append(txt)
|
||||
if contents:
|
||||
data['tableofcontents'] = '\n'.join(contents).strip()
|
||||
if not 'tableofcontents' in data:
|
||||
if 'tableofcontents' not in data:
|
||||
guide = info.find('{http://www.idpf.org/2007/opf}guide')
|
||||
if guide:
|
||||
for ref in guide.findall('{http://www.idpf.org/2007/opf}reference'):
|
||||
|
@ -169,7 +169,7 @@ def info(epub):
|
|||
data['description'] = strip_tags(decode_html(data['description']))
|
||||
text = extract_text(epub)
|
||||
data['textsize'] = len(text)
|
||||
if not 'isbn' in data:
|
||||
if 'isbn' not in data:
|
||||
isbn = extract_isbn(text)
|
||||
if isbn:
|
||||
data['isbn'] = isbn
|
||||
|
|
Loading…
Reference in a new issue