From eda46451986acdc86acbc723de78a19d30623ece Mon Sep 17 00:00:00 2001 From: enewhuis Date: Tue, 31 Mar 2015 19:59:44 -0500 Subject: [PATCH] Fix erroneous argument shadowing --- websocket/_http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket/_http.py b/websocket/_http.py index dffedc7..64b7d59 100644 --- a/websocket/_http.py +++ b/websocket/_http.py @@ -117,13 +117,13 @@ def _open_socket(addrinfo_list, sockopt, timeout): return sock -def _ssl_socket(sock, sslopt, hostname): +def _ssl_socket(sock, user_sslopt, hostname): sslopt = dict(cert_reqs=ssl.CERT_REQUIRED) certPath = os.path.join( os.path.dirname(__file__), "cacert.pem") if os.path.isfile(certPath): sslopt['ca_certs'] = certPath - sslopt.update(sslopt) + sslopt.update(user_sslopt) check_hostname = sslopt.pop('check_hostname', True) sock = ssl.wrap_socket(sock, **sslopt) if (sslopt["cert_reqs"] != ssl.CERT_NONE and check_hostname):