Browser: callback in the same place, async or not

This commit is contained in:
Laurent Bachelier 2015-04-09 10:15:57 +02:00 committed by Romain Bignon
commit f591dba678
2 changed files with 15 additions and 16 deletions

View file

@ -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):