Also hook in the readurl method
This commit is contained in:
parent
da55da0d9d
commit
a301177175
1 changed files with 3 additions and 0 deletions
|
|
@ -258,7 +258,10 @@ class BaseBrowser(mechanize.Browser):
|
|||
Download URL data specifying what to do on failure (nothing by default).
|
||||
"""
|
||||
result = self.openurl(url, if_fail=if_fail)
|
||||
|
||||
if result:
|
||||
if self.SAVE_RESPONSES:
|
||||
self.save_response(result)
|
||||
return result.read()
|
||||
else:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue