From 759d0e57499e297fe3b2924f83d1c5b52789e0c2 Mon Sep 17 00:00:00 2001 From: liris Date: Mon, 22 Jun 2015 09:42:37 +0900 Subject: [PATCH] - refactoring. --- websocket/_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket/_http.py b/websocket/_http.py index 7b4e55e..662cb10 100644 --- a/websocket/_http.py +++ b/websocket/_http.py @@ -119,7 +119,7 @@ def _open_socket(addrinfo_list, sockopt, timeout): def _can_use_sni(): - return (six.PY2 and sys.version_info[1] >= 7 and sys.version_info[2] >= 9) or (six.PY3 and sys.version_info[2] >= 2) + return six.Py2 and sys.version_info >= (2, 7, 9) or sys.version_info >= (3, 2) def _wrap_sni_socket(sock, sslopt, hostname, check_hostname):