Browser: callback in the same place, async or not
This commit is contained in:
parent
25da89642a
commit
f591dba678
2 changed files with 15 additions and 16 deletions
|
|
@ -346,10 +346,8 @@ class Browser(object):
|
|||
verify=verify,
|
||||
cert=cert,
|
||||
proxies=proxies,
|
||||
background_callback=async and inner_callback)
|
||||
if not async:
|
||||
inner_callback(self, response)
|
||||
|
||||
callback=inner_callback,
|
||||
async=async)
|
||||
return response
|
||||
|
||||
def async_open(self, url, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue