Commit 5e31c47a authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by ntome

browser.sessions: PEP8 fixes

parent af2303dc
......@@ -27,8 +27,8 @@ except ImportError:
from requests import Session
from requests.adapters import DEFAULT_POOLSIZE, HTTPAdapter
from requests.compat import cookielib, OrderedDict
from requests.cookies import cookiejar_from_dict, RequestsCookieJar
from requests.compat import OrderedDict, cookielib
from requests.cookies import RequestsCookieJar, cookiejar_from_dict
from requests.models import PreparedRequest
from requests.sessions import merge_setting
from requests.structures import CaseInsensitiveDict
......@@ -79,7 +79,6 @@ class WeboobSession(Session):
# Set environment's basic authentication if not explicitly set.
auth = request.auth
if self.trust_env and not auth and not self.auth:
......@@ -148,6 +147,7 @@ class FuturesSession(WeboobSession):
callback = kwargs.pop('callback', lambda future, response: response)
is_async = kwargs.pop('is_async', False)
def func(*args, **kwargs):
resp = sup(*args, **kwargs)
return callback(self, resp)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment