diff options
author | Pär Tojkander <par.tojkander@assaabloy.com> | 2018-10-11 12:41:18 +0200 |
---|---|---|
committer | Pär Tojkander <par.tojkander@assaabloy.com> | 2018-10-11 12:41:18 +0200 |
commit | fc09e7e2610bbf0e7308708a71eab066184aee01 (patch) | |
tree | ebee9d21b3e67b6ba74bc04d06c8b26ae31257f2 /websocket | |
parent | da1fdb16927f01420749d121cc17666a66684587 (diff) | |
download | websocket-client-fc09e7e2610bbf0e7308708a71eab066184aee01.tar.gz |
Handle PY3.4/3.5
Diffstat (limited to 'websocket')
-rw-r--r-- | websocket/_handshake.py | 5 |
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 |