Skip to content

Commit

Permalink
Ignore arguments to init_poolmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 committed Nov 25, 2015
1 parent 1b6421c commit ad79242
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions requests_toolbelt/adapters/appengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,18 @@ class AppEngineAdapter(adapters.HTTPAdapter):
>>>
"""

def __init__(self, *args, **kwargs):
def __init__(self, validate_certificate=True, *args, **kwargs):
if gaecontrib is None:
raise exc.VersionMismatchError(
"The toolbelt requires at least Requests 2.8.0 to be "
"installed. Version {0} was found instead.".format(
requests.__version__
)
)
self._validate_certificate = validate_certificate
super(AppEngineAdapter, self).__init__(self, *args, **kwargs)

def init_poolmanager(self, connections, maxsize, block=False):
self.poolmanager = gaecontrib.AppEngineManager(
num_pools=connections,
maxsize=maxsize,
block=block,
)
validate_certificate=self._validate_certificate
)

0 comments on commit ad79242

Please sign in to comment.