From 741cde352ef3c648d3e96a95a18f7dc9caad9fec Mon Sep 17 00:00:00 2001 From: Phyks Date: Wed, 30 Apr 2014 00:54:15 +0200 Subject: [PATCH] Flake8 --- README.md | 2 +- fetcher.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 20ceb0a..a19a0f4 100644 --- a/README.md +++ b/README.md @@ -118,4 +118,4 @@ A list of ideas and TODO. Don't hesitate to give feedback on the ones you really ## Issues ? -* Remove the watermarks on pdf files => done, some warning in okular on generated pdf, but seems ok. Seems to be a bug in PyPDF2. +* Remove the watermarks on pdf files => done, some warning in okular on generated pdf, but seems ok. Seems to be a bug in Okular. diff --git a/fetcher.py b/fetcher.py index 3e77bef..6048305 100644 --- a/fetcher.py +++ b/fetcher.py @@ -57,9 +57,10 @@ def findISBN(src): stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=1) - while totext.poll() == None: + while totext.poll() is None: extractfull = totext.stdin.readline() - extractISBN = isbn_re.search(extractfull.lower().replace('Œ', '-')) + extractISBN = isbn_re.search(extractfull.lower().replace('Œ', + '-')) if extractISBN: totext.terminate() break @@ -111,7 +112,7 @@ def findDOI(src): stdout=subprocess.PIPE, stderr=subprocess.PIPE) - while totext.poll() == None: + while totext.poll() is None: extractfull = totext.stdin.readline() extractDOI = doi_re.search(extractfull.lower().replace('Œ', '-')) if not extractDOI: