forked from openlp/openlp
Fix BibleGateway searches for BeautifulSoup 3.1
bzr-revno: 1122
This commit is contained in:
commit
3ae6d7db97
@ -213,7 +213,7 @@ class BGExtract(object):
|
|||||||
finally:
|
finally:
|
||||||
if not page:
|
if not page:
|
||||||
return None
|
return None
|
||||||
cleaner = [(re.compile(' |<br />'), lambda match: '')]
|
cleaner = [(re.compile(' |<br />|\'\+\''), lambda match: '')]
|
||||||
soup = None
|
soup = None
|
||||||
try:
|
try:
|
||||||
soup = BeautifulSoup(page, markupMassage=cleaner)
|
soup = BeautifulSoup(page, markupMassage=cleaner)
|
||||||
|
Loading…
Reference in New Issue
Block a user