mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
df0e052c08
commit
3c86c9be6f
@ -57,7 +57,7 @@ def search(query, max_results=10, timeout=60):
|
||||
if 'Price:' in price:
|
||||
try:
|
||||
price = price.partition('Price:')[2]
|
||||
price = re.sub('\s', ' ', price).strip()
|
||||
price = re.sub(r'\s', ' ', price).strip()
|
||||
price = price.split(' ')[0].strip()
|
||||
except Exception:
|
||||
price = 'Unknown'
|
||||
|
Loading…
x
Reference in New Issue
Block a user