File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 ReadTimeoutError ,
3939 ProxyError ,
4040 TimeoutError )
41+ # The Header dict lives in a different place for urllib3 v2:
42+ try :
43+ from urllib3 import HTTPHeaderDict as Urllib3HTTPHeaderDict
44+ # vs. urllib3 v1:
45+ except ImportError :
46+ from urllib3 .response import HTTPHeaderDict as Urllib3HTTPHeaderDict
47+
4148from warnings import warn
4249from . import _utils , __version__
4350from ._models import CdxRecord , Memento
Original file line number Diff line number Diff line change 88from urllib .parse import urlparse , ParseResult , parse_qs
99from urllib3 import (HTTPConnectionPool ,
1010 HTTPResponse ,
11- HTTPHeaderDict ,
1211 Timeout as Urllib3Timeout )
12+ # The Header dict lives in a different place for urllib3 v2:
13+ try :
14+ from urllib3 import HTTPHeaderDict
15+ # vs. urllib3 v1:
16+ except ImportError :
17+ from urllib3 .response import HTTPHeaderDict
18+
1319from .support import create_vcr
1420from .._client import (CdxRecord ,
1521 Mode ,
You can’t perform that action at this time.
0 commit comments