summaryrefslogtreecommitdiff
path: root/websocket
diff options
context:
space:
mode:
authorPär Tojkander <par.tojkander@assaabloy.com>2018-10-11 12:41:18 +0200
committerPär Tojkander <par.tojkander@assaabloy.com>2018-10-11 12:41:18 +0200
commitfc09e7e2610bbf0e7308708a71eab066184aee01 (patch)
treeebee9d21b3e67b6ba74bc04d06c8b26ae31257f2 /websocket
parentda1fdb16927f01420749d121cc17666a66684587 (diff)
downloadwebsocket-client-fc09e7e2610bbf0e7308708a71eab066184aee01.tar.gz
Handle PY3.4/3.5
Diffstat (limited to 'websocket')
-rw-r--r--websocket/_handshake.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/websocket/_handshake.py b/websocket/_handshake.py
index 8c6f6a6..3b8ddc0 100644
--- a/websocket/_handshake.py
+++ b/websocket/_handshake.py
@@ -37,7 +37,10 @@ else:
from base64 import encodestring as base64encode
if six.PY3:
- from http import HTTPStatus
+ if six.PY34:
+ from http import client as HTTPStatus
+ else:
+ from http import HTTPStatus
else:
import httplib as HTTPStatus