mirror of https://github.com/docker/docker-py.git
Updated websocket-client dependency to latest version (now supports python 3)
This commit is contained in:
parent
f40e0342b2
commit
3170277347
|
@ -23,6 +23,8 @@ from datetime import datetime
|
|||
import requests
|
||||
import requests.exceptions
|
||||
import six
|
||||
import websocket
|
||||
|
||||
|
||||
from . import constants
|
||||
from . import errors
|
||||
|
@ -33,10 +35,6 @@ from .utils import utils, check_resource
|
|||
from .tls import TLSConfig
|
||||
|
||||
|
||||
if not six.PY3:
|
||||
import websocket
|
||||
|
||||
|
||||
class Client(requests.Session):
|
||||
def __init__(self, base_url=None, version=None,
|
||||
timeout=constants.DEFAULT_TIMEOUT_SECONDS, tls=False):
|
||||
|
@ -154,9 +152,6 @@ class Client(requests.Session):
|
|||
|
||||
@check_resource
|
||||
def _attach_websocket(self, container, params=None):
|
||||
if six.PY3:
|
||||
raise NotImplementedError("This method is not currently supported "
|
||||
"under python 3")
|
||||
url = self._url("/containers/{0}/attach/ws".format(container))
|
||||
req = requests.Request("POST", url, params=self._attach_params(params))
|
||||
full_url = req.prepare().url
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
requests==2.5.3
|
||||
six>=1.3.0
|
||||
websocket-client==0.11.0
|
||||
websocket-client==0.32.0
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
requests==2.5.3
|
||||
six>=1.3.0
|
Loading…
Reference in New Issue