Skip to content

Commit 0f07281

Browse files
committed
fixed syntax for Py2
1 parent 7e2cc4e commit 0f07281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sasctl/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def __str__(self):
166166
class SSLContextAdapter(HTTPAdapter):
167167
"""HTTPAdapter that uses the default SSL context on the machine."""
168168

169-
def __init__(self, *args, assert_hostname=True, **kwargs):
170-
self.assert_hostname = assert_hostname
169+
def __init__(self, *args, **kwargs):
170+
self.assert_hostname = kwargs.pop('assert_hostname', True)
171171
requests.adapters.HTTPAdapter.__init__(self, *args, **kwargs)
172172

173173
def init_poolmanager(self, *args, **kwargs):

0 commit comments

Comments
 (0)