mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
00693a733f
commit
a527329080
@ -159,10 +159,12 @@ def absurl(url):
|
||||
url = 'https://www.granta.com' + url
|
||||
return url
|
||||
|
||||
|
||||
def stripstyle(tag):
|
||||
if tag is not None:
|
||||
del tag['style']
|
||||
|
||||
|
||||
def get_innermost_string(tag):
|
||||
while hasattr(tag, 'contents') and len(tag.contents) > 0 and tag.contents[0] is not None:
|
||||
tag = tag.contents[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user