From 1421e402e13e07a4c426dd0430b7c16a1afa01a4 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 1 Feb 2019 16:43:20 +0530 Subject: [PATCH] PEP8 --- oml/media/epub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oml/media/epub.py b/oml/media/epub.py index cd5a6f0..552a134 100644 --- a/oml/media/epub.py +++ b/oml/media/epub.py @@ -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