1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
U
I=®dàuã@sªdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl m Z ddlmZddlmZddlmZddlmZdd    lmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#dd
l$m%Z%dd l&m'Z'dd l(m)Z)m*Z*m+Z+m,Z,d Z-e .¡Z/dddœZ0ej1dkr:dd„Z2dd„Zdd„Z3dd„Z4didd„Z5dd„Z6dd „Z7d!d"„Z8d#d$„Z9d%d&„Z:d'd(„Z;djd)d*„Z<d+d,„Z=d-d.„Z>d/d0„Z?d1d2„Z@d3d4„ZAd5d6„ZBd7d8„ZCd9d:„ZDeEd;ƒZFd<d=„ZGd>d?„ZHd@dA„ZIdBdC„ZJdDdE„ZKdFdG„ZLejMdHdI„ƒZNdJdK„ZOdkdLdM„ZPdNdO„ZQdldQdR„ZRdSdT„ZSdUdV„ZTdW UdX¡ZVeVdYZWeVdZZXd[d\„ZYd]d^„ZZd_d`„Z[e \da¡Z]e \db¡Z^dcdd„Z_dedf„Z`dgdh„ZadS)mz”
requests.utils
~~~~~~~~~~~~~~
 
This module provides utility functions that are used within Requests
that are also useful for external consumption.
éN)Ú OrderedDicté©Ú __version__)Úcerts)Úto_native_string)Úparse_http_list)ÚquoteÚurlparseÚbytesÚstrÚunquoteÚ
getproxiesÚ proxy_bypassÚ
urlunparseÚ
basestringÚ integer_typesÚis_py3Úproxy_bypass_environmentÚgetproxies_environmentÚMapping©Úcookiejar_from_dict)ÚCaseInsensitiveDict)Ú
InvalidURLÚ InvalidHeaderÚFileModeWarningÚUnrewindableBodyError)z.netrcÚ_netrcéPi»)ÚhttpÚhttpsÚwin32cCsôztrddl}nddl}Wntk
r0YdSXz6| |jd¡}t| |d¡dƒ}| |d¡d}Wntk
r~YdSX|rˆ|sŒdS|     d¡}|D]T}|dkr´d|kr´d    S| 
dd
¡}| 
d d ¡}| 
d d¡}t   ||t j ¡ršd    SqšdS)NrFz;Software\Microsoft\Windows\CurrentVersion\Internet SettingsÚ ProxyEnableÚ ProxyOverrideú;z<local>Ú.Tz\.Ú*z.*ú?)rÚwinregÚ_winregÚ ImportErrorÚOpenKeyÚHKEY_CURRENT_USERÚintÚ QueryValueExÚOSErrorÚsplitÚreplaceÚreÚmatchÚI)Úhostr)ÚinternetSettingsÚ proxyEnableÚ proxyOverrideÚtest©r;úQD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_vendor/requests/utils.pyÚproxy_bypass_registry0sF
 ÿÿÿÿÿ
   r=cCstƒrt|ƒSt|ƒSdS)zšReturn True, if the host should be bypassed.
 
        Checks proxy settings gathered from the environment, if specified,
        or the registry.
        N)rrr=)r6r;r;r<rWsrcCst|dƒr| ¡}|S)z/Returns an internal sequence dictionary update.Úitems)Úhasattrr>)Údr;r;r<Údict_to_sequencecs
rAc    Cs4d}d}t|dƒrt|ƒ}nbt|dƒr.|j}nPt|dƒr~z | ¡}Wntjk
rZYn$Xt |¡j}d|jkr~t     
dt ¡t|dƒrz |  ¡}Wn$t tfk
rº|dk    r¶|}Yn^Xt|dƒr|dkrz&| dd    ¡|  ¡}| |pòd¡Wnt tfk
rd}YnX|dkr&d}td||ƒS)
NrÚ__len__ÚlenÚfilenoÚba%Requests has determined the content-length for this request using the binary size of the file: however, the file has been opened in text mode (i.e. without the 'b' flag in the mode). This may lead to an incorrect content-length. In Requests 3.0, support will be removed for files in text mode.ÚtellÚseeké)r?rCrDÚioÚUnsupportedOperationÚosÚfstatÚst_sizeÚmodeÚwarningsÚwarnrrFr0ÚIOErrorrGÚmax)ÚoÚ total_lengthÚcurrent_positionrDr;r;r<Ú    super_lenlsB
 
 
 
 
ù
 
 
 
rVFc     Cs&zddlm}m}d}tD]J}ztj d |¡¡}Wntk
rPYWdSXtj |¡r|}qhq|dkrvWdSt    |ƒ}d}t
|t ƒr–|  d¡}|j  |¡d}    z:||ƒ |    ¡}
|
rÞ|
drÆdnd} |
| |
dfWWSWn"|tfk
r|rþ‚YnXWnttfk
r YnXdS)    z;Returns the Requests tuple auth for a given url from netrc.r)ÚnetrcÚNetrcParseErrorNz~/{}ó:ÚasciirrH)rWrXÚ NETRC_FILESrKÚpathÚ
expanduserÚformatÚKeyErrorÚexistsr
Ú
isinstancer ÚdecodeÚnetlocr1ÚauthenticatorsrQr+ÚAttributeError) ÚurlÚ raise_errorsrWrXÚ
netrc_pathÚfÚlocÚriÚsplitstrr6rÚlogin_ir;r;r<Úget_netrc_auth©s8  
 
 rncCsBt|ddƒ}|r>t|tƒr>|ddkr>|ddkr>tj |¡SdS)z0Tries to guess the filename of the given object.ÚnameNrú<éÿÿÿÿú>)ÚgetattrrarrKr\Úbasename)Úobjror;r;r<Úguess_filenameÜs
 
ÿrvcCs¶tj |¡r|Stj |¡\}}|rPtj |¡sPtj |¡\}}d ||g¡}q t |¡s^|St |¡}|| ¡krx|St     
¡}tjj|f| d¡žŽ}tj |¡s²|j ||d}|S)zÄReplace nonexistent paths that look like they refer to a member of a zip
    archive with the location of an extracted copy of the target, or else
    just return the provided path unchanged.
    ú/)r\) rKr\r`r1ÚjoinÚzipfileÚ
is_zipfileÚZipFileÚnamelistÚtempfileÚ
gettempdirÚextract)r\ÚarchiveÚmemberÚprefixÚzip_fileÚtmpÚextracted_pathr;r;r<Úextract_zipped_pathsäs  
 
  r†cCs.|dkr dSt|ttttfƒr&tdƒ‚t|ƒS)aTake an object and test to see if it can be represented as a
    dictionary. Unless it can not be represented as such, return an
    OrderedDict, e.g.,
 
    ::
 
        >>> from_key_val_list([('key', 'val')])
        OrderedDict([('key', 'val')])
        >>> from_key_val_list('string')
        Traceback (most recent call last):
        ...
        ValueError: cannot encode objects that are not 2-tuples
        >>> from_key_val_list({'key': 'val'})
        OrderedDict([('key', 'val')])
 
    :rtype: OrderedDict
    Nú+cannot encode objects that are not 2-tuples)rar r Úboolr.Ú
ValueErrorr©Úvaluer;r;r<Úfrom_key_val_lists
rŒcCs@|dkr dSt|ttttfƒr&tdƒ‚t|tƒr8| ¡}t|ƒS)aÂTake an object and test to see if it can be represented as a
    dictionary. If it can be, return a list of tuples, e.g.,
 
    ::
 
        >>> to_key_val_list([('key', 'val')])
        [('key', 'val')]
        >>> to_key_val_list({'key': 'val'})
        [('key', 'val')]
        >>> to_key_val_list('string')
        Traceback (most recent call last):
        ...
        ValueError: cannot encode objects that are not 2-tuples
 
    :rtype: list
    Nr‡)    rar r rˆr.r‰rr>ÚlistrŠr;r;r<Úto_key_val_lists
rŽcCsXg}t|ƒD]F}|dd…|dd…kr4dkrHnnt|dd…ƒ}| |¡q |S)aParse lists as described by RFC 2068 Section 2.
 
    In particular, parse comma-separated lists where the elements of
    the list may include quoted-strings.  A quoted-string could
    contain a comma.  A non-quoted string could have quotes in the
    middle.  Quotes are removed automatically after parsing.
 
    It basically works like :func:`parse_set_header` just that items
    may appear multiple times and case sensitivity is preserved.
 
    The return value is a standard :class:`list`:
 
    >>> parse_list_header('token, "quoted value"')
    ['token', 'quoted value']
 
    To create a header from the :class:`list` again, use the
    :func:`dump_header` function.
 
    :param value: a string with a list header.
    :return: :class:`list`
    :rtype: list
    Nrrqú")Ú_parse_list_headerÚunquote_header_valueÚappend)r‹ÚresultÚitemr;r;r<Úparse_list_header=s  ( r•cCsxi}t|ƒD]f}d|kr"d||<q | dd¡\}}|dd…|dd…krVdkrjnnt|dd…ƒ}|||<q |S)a^Parse lists of key, value pairs as described by RFC 2068 Section 2 and
    convert them into a python dict:
 
    >>> d = parse_dict_header('foo="is a fish", bar="as well"')
    >>> type(d) is dict
    True
    >>> sorted(d.items())
    [('bar', 'as well'), ('foo', 'is a fish')]
 
    If there is no value for a key it will be `None`:
 
    >>> parse_dict_header('key_without_value')
    {'key_without_value': None}
 
    To create a header from the :class:`dict` again, use the
    :func:`dump_header` function.
 
    :param value: a string with a dict header.
    :return: :class:`dict`
    :rtype: dict
    ú=Nrrqr)rr1r‘)r‹r“r”ror;r;r<Úparse_dict_header]s (
r—cCs\|rX|d|dkr dkrXnn4|dd…}|rD|dd…dkrX| dd¡ d    d¡S|S)
zçUnquotes a header value.  (Reversal of :func:`quote_header_value`).
    This does not use the real unquoting but what browsers are actually
    using for quoting.
 
    :param value: the header value to unquote.
    :rtype: str
    rrqrrNrHz\\ú\z\")r2)r‹Ú is_filenamer;r;r<r‘€s
$ r‘cCsi}|D]}|j||j<q|S)z€Returns a key/value dictionary from a CookieJar.
 
    :param cj: CookieJar object to extract cookies from.
    :rtype: dict
    )r‹ro)ÚcjÚ cookie_dictÚcookier;r;r<Údict_from_cookiejar™srcCs
t||ƒS)zÂReturns a CookieJar from a key/value dictionary.
 
    :param cj: CookieJar to insert cookies into.
    :param cookie_dict: Dict of key/values to insert into CookieJar.
    :rtype: CookieJar
    r)ršr›r;r;r<Úadd_dict_to_cookiejar¨sržcCsTt dt¡tjdtjd}tjdtjd}t d¡}| |¡| |¡| |¡S)zlReturns encodings from given content string.
 
    :param content: bytestring to extract encodings from.
    z¤In requests 3.0, get_encodings_from_content will be removed. For more information, please see the discussion on issue #2266. (This warning should only appear once.)z!<meta.*?charset=["\']*(.+?)["\'>])Úflagsz+<meta.*?content=["\']*;?charset=(.+?)["\'>]z$^<\?xml.*?encoding=["\']*(.+?)["\'>])rOrPÚDeprecationWarningr3Úcompiler5Úfindall)ÚcontentÚ
charset_reÚ    pragma_reÚxml_rer;r;r<Úget_encodings_from_content³sü
ÿþr§c
Csš| d¡}|d ¡|dd…}}i}d}|D]`}| ¡}|r0|d}}| d¡}    |    dkr„|d|    … |¡}||    dd… |¡}||| ¡<q0||fS)    z¦Returns content type and parameters from given header
 
    :param header: string
    :return: tuple containing content type and dictionary of
         parameters
    r%rrNz"' Tr–rq)r1ÚstripÚfindÚlower)
ÚheaderÚtokensÚ content_typeÚparamsÚ params_dictÚitems_to_stripÚparamÚkeyr‹Úindex_of_equalsr;r;r<Ú_parse_content_type_headerÇs
 
 
r´cCsD| d¡}|sdSt|ƒ\}}d|kr4|d d¡Sd|kr@dSdS)z}Returns encodings from given HTTP Header Dict.
 
    :param headers: dictionary to extract encoding from.
    :rtype: str
    z content-typeNÚcharsetz'"Útextz
ISO-8859-1)Úgetr´r¨)Úheadersr­r®r;r;r<Úget_encoding_from_headersàs
 r¹ccsj|jdkr|D]
}|VqdSt |j¡dd}|D]}| |¡}|r4|Vq4|jddd}|rf|VdS)zStream decodes a iterator.Nr2©ÚerrorsóT)Úfinal)ÚencodingÚcodecsÚgetincrementaldecoderrb)ÚiteratorÚrr”ÚdecoderÚchunkÚrvr;r;r<Ústream_decode_response_unicodeõs
 
rÆccsHd}|dks|dkrt|ƒ}|t|ƒkrD||||…V||7}qdS)z Iterate over slices of a string.rN)rC)ÚstringÚ slice_lengthÚposr;r;r<Ú iter_slicess  rÊcCs~t dt¡g}t|jƒ}|rLzt|j|ƒWStk
rJ| |¡YnXzt|j|ddWSt    k
rx|jYSXdS)zâReturns the requested content back in unicode.
 
    :param r: Response object to get unicode content from.
 
    Tried:
 
    1. charset from content-type
    2. fall back and replace all unicode characters
 
    :rtype: str
    z£In requests 3.0, get_unicode_from_response will be removed. For more information, please see the discussion on issue #2266. (This warning should only appear once.)r2rºN)
rOrPr r¹r¸r r£Ú UnicodeErrorr’Ú    TypeError)rÂÚtried_encodingsr¾r;r;r<Úget_unicode_from_responses ü
rÎzBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~c    CsÄ| d¡}tdt|ƒƒD] }||dd…}t|ƒdkr¨| ¡r¨ztt|dƒƒ}Wn tk
rrtd|ƒ‚YnX|tkr–|||dd…||<q¸d||||<qd||||<qd     |¡S)    z¨Un-escape any percent-escape sequences in a URI that are unreserved
    characters. This leaves all reserved, illegal and non-ASCII bytes encoded.
 
    :rtype: str
    ú%rrrHéz%Invalid percent-escape sequence: '%s'NÚ)
r1ÚrangerCÚisalnumÚchrr.r‰rÚUNRESERVED_SETrx)ÚuriÚpartsÚiÚhÚcr;r;r<Úunquote_unreserved:s
rÛcCs@d}d}ztt|ƒ|dWStk
r:t||dYSXdS)z¬Re-quote the given URI.
 
    This function passes the given URI through an unquote/quote cycle to
    ensure that it is fully and consistently quoted.
 
    :rtype: str
    z!#$%&'()*+,/:;=?@[]~z!#$&'()*+,/:;=?@[]~)ÚsafeN)r    rÛr)rÖÚsafe_with_percentÚsafe_without_percentr;r;r<Ú requote_uriRs rßcCslt dt |¡¡d}| d¡\}}t dt tt|ƒƒ¡¡d}t dt |¡¡d|@}||@||@kS)zïThis function allows you to check if an IP belongs to a network subnet
 
    Example: returns True if ip = 192.168.1.1 and net = 192.168.1.0/24
             returns False if ip = 192.168.1.1 and net = 192.168.100.0/24
 
    :rtype: bool
    z=Lrrw)ÚstructÚunpackÚsocketÚ    inet_atonr1Údotted_netmaskr.)ÚipÚnetÚipaddrÚnetaddrÚbitsÚnetmaskÚnetworkr;r;r<Úaddress_in_networkhs
rìcCs&ddd|>dA}t t d|¡¡S)zConverts mask from /xx format to xxx.xxx.xxx.xxx
 
    Example: if mask is 24 function returns 255.255.255.0
 
    :rtype: str
    lÿÿré z>I)râÚ    inet_ntoaràÚpack)Úmaskrér;r;r<räwsräcCs,zt |¡Wntjk
r&YdSXdS)z
    :rtype: bool
    FT)rârãÚerror)Ú    string_ipr;r;r<Úis_ipv4_address‚s
rócCsŒ| d¡dkr„zt| d¡dƒ}Wntk
r:YdSX|dksL|dkrPdSzt | d¡d¡Wqˆtjk
r€YdSXndSdS)zV
    Very simple check of the cidr format in no_proxy variable.
 
    :rtype: bool
    rwrFrírT)Úcountr.r1r‰rârãrñ)Ústring_networkrðr;r;r<Ú is_valid_cidrs
röc    csT|dk    }|r"tj |¡}|tj|<z
dVW5|rN|dkrDtj|=n
|tj|<XdS)zÎSet the environment variable 'env_name' to 'value'
 
    Save previous value, yield, and then restore the previous value stored in
    the environment variable 'env_name'.
 
    If 'value' is None, do nothingN)rKÚenvironr·)Úenv_namer‹Ú value_changedÚ    old_valuer;r;r<Ú set_environ¥s 
 
 
rûc    
Cs*dd„}|}|dkr|dƒ}t|ƒ}|jdkr2dS|rÖdd„| dd    ¡ d
¡Dƒ}t|jƒr”|D]0}t|ƒr€t|j|ƒrdSq`|j|kr`dSq`nB|j}|jr°|d  |j¡7}|D] }|j     |¡sÎ|     |¡r´dSq´t
d|ƒ6zt |jƒ}Wn t t jfk
rd }YnXW5QRX|r&dSd S) zL
    Returns whether we should bypass proxies or not.
 
    :rtype: bool
    cSstj |¡ptj | ¡¡S©N)rKr÷r·Úupper)Úkr;r;r<Ú<lambda>Ãr¼z'should_bypass_proxies.<locals>.<lambda>NÚno_proxyTcss|]}|r|VqdSrür;)Ú.0r6r;r;r<Ú    <genexpr>Ósz(should_bypass_proxies.<locals>.<genexpr>ú rÑú,z:{}F)r
Úhostnamer2r1rórörìÚportr^ÚendswithrûrrÌrâÚgaierror)    rfrÚ    get_proxyÚ no_proxy_argÚparsedÚproxy_ipÚhost_with_portr6Úbypassr;r;r<Úshould_bypass_proxies»s@
ÿ
 
 
 rcCst||driStƒSdS)zA
    Return a dict of environment proxies.
 
    :rtype: dict
    )rN)rr)rfrr;r;r<Úget_environ_proxiesøs rcCst|pi}t|ƒ}|jdkr.| |j| d¡¡S|jd|j|jd|jdg}d}|D]}||krV||}qpqV|S)z­Select a proxy for the url, if applicable.
 
    :param url: The url being for the request
    :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs
    NÚallz://zall://)r
rr·Úscheme)rfÚproxiesÚurlpartsÚ
proxy_keysÚproxyÚ    proxy_keyr;r;r<Ú select_proxys
ürúpython-requestscCs d|tfS)zO
    Return a string representing the default user agent.
 
    :rtype: str
    z%s/%sr)ror;r;r<Údefault_user_agentsrcCsttƒd d¡dddœƒS)z9
    :rtype: requests.structures.CaseInsensitiveDict
    z, )ÚgzipÚdeflatez*/*z
keep-alive)z
User-AgentzAccept-EncodingÚAcceptÚ
Connection)rrrxr;r;r;r<Údefault_headers's ürc    
CsÎg}d}| |¡}|s|St d|¡D]¢}z| dd¡\}}Wntk
r\|d}}YnXd| d¡i}| d¡D]F}z| d¡\}}Wntk
r¦Yq¾YnX| |¡|| |¡<qv| |¡q&|S)    z¼Return a list of parsed link headers proxies.
 
    i.e. Link: <http:/.../front.jpeg>; rel=front; type="image/jpeg",<http://.../back.jpeg>; rel=back;type="image/jpeg"
 
    :rtype: list
    z '"z, *<r%rrÑrfz<> '"r–)r¨r3r1r‰r’)    r‹ÚlinksÚ replace_charsÚvalrfr®Úlinkr±r²r;r;r<Úparse_header_links3s&
  r$úrZrHécCsÐ|dd…}|tjtjfkr dS|dd…tjkr6dS|dd…tjtjfkrRdS| t¡}|dkrhd    S|dkrœ|ddd…tkr†d
S|d dd…tkrœd S|dkrÌ|dd…t    kr¸d S|d d…t    krÌdSdS)z
    :rtype: str
    Nézutf-32r&z    utf-8-sigrHzutf-16rzutf-8z    utf-16-berz    utf-16-lez    utf-32-bez    utf-32-le)
r¿Ú BOM_UTF32_LEÚ BOM_UTF32_BEÚBOM_UTF8Ú BOM_UTF16_LEÚ BOM_UTF16_BErôÚ_nullÚ_null2Ú_null3)ÚdataÚsampleÚ    nullcountr;r;r<Úguess_json_utf^s* 
r3cCs8t||ƒ\}}}}}}|s$||}}t||||||fƒS)zªGiven a URL that may or may not have a scheme, prepend the given scheme.
    Does not replace a present scheme with the one provided as an argument.
 
    :rtype: str
    )r
r)rfÚ
new_schemerrcr\r®ÚqueryÚfragmentr;r;r<Úprepend_scheme_if_needed~s
r7c    CsBt|ƒ}zt|jƒt|jƒf}Wnttfk
r<d}YnX|S)z{Given a url with authentication components, extract them into a tuple of
    username,password.
 
    :rtype: (str,str)
    )rÑrÑ)r
r ÚusernameÚpasswordrerÌ)rfr Úauthr;r;r<Úget_auth_from_urls 
r;s^\S[^\r\n]*$|^$z^\S[^\r\n]*$|^$c    Csf|\}}t|tƒrt}nt}z| |¡s4td|ƒ‚Wn*tk
r`td||t|ƒfƒ‚YnXdS)zÕVerifies that header value is a string which doesn't contain
    leading whitespace or return characters. This prevents unintended
    header injection.
 
    :param header: tuple, in the format (name, value).
    z7Invalid return character or leading space in header: %sz>Value for header {%s: %s} must be of type str or bytes, not %sN)rar Ú_CLEAN_HEADER_REGEX_BYTEÚ_CLEAN_HEADER_REGEX_STRr4rrÌÚtype)r«ror‹Úpatr;r;r<Úcheck_header_validity¤s
 
 ÿr@cCsFt|ƒ\}}}}}}|s"||}}| dd¡d}t|||||dfƒS)zW
    Given a url remove the fragment and the authentication part.
 
    :rtype: str
    ú@rrqrÑ)r
Úrsplitr)rfrrcr\r®r5r6r;r;r<Ú urldefragauth¹s
 
rCc    Cs`t|jddƒ}|dk    rTt|jtƒrTz||jƒWq\ttfk
rPtdƒ‚Yq\Xntdƒ‚dS)zfMove file pointer back to its recorded starting position
    so it can be read again on redirect.
    rGNz;An error occurred when rewinding request body for redirect.z+Unable to rewind request body for redirect.)rsÚbodyraÚ_body_positionrrQr0r)Úprepared_requestÚ    body_seekr;r;r<Ú rewind_bodyÊsrH)F)F)N)r)bÚ__doc__r¿Ú
contextlibrIrKr3râràÚsysr}rOryÚ collectionsrrrÑrÚ_internal_utilsrÚcompatrrr    r
r r r rrrrrrrrrÚcookiesrÚ
structuresrÚ
exceptionsrrrrr[ÚwhereÚDEFAULT_CA_BUNDLE_PATHÚ DEFAULT_PORTSÚplatformr=rArVrnrvr†rŒrŽr•r—r‘rržr§r´r¹rÆrÊrÎÚ    frozensetrÕrÛrßrìräróröÚcontextmanagerrûrrrrrr$Úencoder-r.r/r3r7r;r¡r<r=r@rCrHr;r;r;r<Ú<module>s     @  
 '     =
3  #
 
%ÿ  
=
 
     &