Apply urllib3 fix from JukkaL

This commit is contained in:
Matthias Kramm
2015-10-12 15:27:37 -07:00
parent ea12378512
commit e4a7edb949
2 changed files with 7 additions and 7 deletions

View File

@@ -6,9 +6,14 @@ from typing import Any
from . import exceptions
from .packages import ssl_match_hostname
from . import packages
from . import connection
from .connection import (
HTTPException as HTTPException,
BaseSSLError as BaseSSLError,
ConnectionError as ConnectionError,
)
from . import request
from . import response
from . import connection
from .util import connection as _connection
from .util import retry
from .util import timeout
@@ -31,9 +36,6 @@ DummyConnection = connection.DummyConnection
HTTPConnection = connection.HTTPConnection
HTTPSConnection = connection.HTTPSConnection
VerifiedHTTPSConnection = connection.VerifiedHTTPSConnection
HTTPException = connection.HTTPException
BaseSSLError = connection.BaseSSLError
ConnectionError = connection.ConnectionError
RequestMethods = request.RequestMethods
HTTPResponse = response.HTTPResponse
is_connection_dropped = _connection.is_connection_dropped

View File

@@ -7,7 +7,7 @@ import io
from . import _collections
from . import exceptions
#from .packages import six
from . import connection
from .connection import HTTPException as HTTPException, BaseSSLError as BaseSSLError
from .util import response
HTTPHeaderDict = _collections.HTTPHeaderDict
@@ -16,8 +16,6 @@ DecodeError = exceptions.DecodeError
ReadTimeoutError = exceptions.ReadTimeoutError
binary_type = bytes # six.binary_type
PY3 = True # six.PY3
HTTPException = connection.HTTPException
BaseSSLError = connection.BaseSSLError
is_fp_closed = response.is_fp_closed
class DeflateDecoder: