Replace basestring with str
This commit is contained in:
parent
fd88b9e096
commit
4f04e6ca62
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ class WebsocketTransport(AbstractTransport):
|
|||
proxy_url_pack.username, proxy_url_pack.password)
|
||||
if http_session.verify:
|
||||
if http_session.cert: # Specify certificate path on disk
|
||||
if isinstance(http_session.cert, basestring):
|
||||
if isinstance(http_session.cert, str):
|
||||
kw['ca_certs'] = http_session.cert
|
||||
else:
|
||||
kw['ca_certs'] = http_session.cert[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue