Flake8
This commit is contained in:
parent
70d14cad5e
commit
741cde352e
@ -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.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user