Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 8 shotgun_api3/shotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -4678,11 +4678,11 @@ def __init__(self, *args, **kwargs):
"""
# Pop that argument,
self.__ca_certs = kwargs.pop("ca_certs")
super().__init__(self, *args, **kwargs)
super().__init__(*args, **kwargs)

def connect(self):
"Connect to a host on a given (SSL) port."
super().connect(self)
super().connect()
# Now that the regular HTTP socket has been created, wrap it with our SSL certs.
if six.PY38:
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
Expand All @@ -4697,13 +4697,13 @@ def connect(self):
)


class CACertsHTTPSHandler(urllib.request.HTTPHandler):
class CACertsHTTPSHandler(urllib.request.HTTPSHandler):
"""
Handler that ensures https connections are created with the custom CA certs.
"""

def __init__(self, cacerts):
super().__init__(self)
super().__init__()
self.__ca_certs = cacerts

def https_open(self, req):
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.