mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Apply urllib3 fix from JukkaL
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user