Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/django/utils/__pycache__/encoding.cpython-312.pyc

94 lines
8.9 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
j<> iY"<00> <00>j<00>ddlZddlZddlZddlmZddlmZddlmZddl m
Z
Gd<06>de <0B>Z dd<08>Z eeeeejej ej"fZd <09>Zdd
<EFBFBD>Zdd <0B>Zdd <0C>Zd <0A>Zgd<0E>edd<10>edd<12>gZeD<00><00><01>cic]+}|D]$}dD]}||zj5<00>e|f<01><00><04><00>&<00>-c}}}ZdZej=eddD<00><03>cic]/}eD](}||zj5<00>ej?||z<00><00><03>*<00>1c}}<03>d<16>Z d<17>Z!d<18>Z"d<19>Z#d<1A>Z$d<1B>Z%e%<25>Z&ycc}}}wcc}}w)<1D>N)<01>Decimal)<01>NoneType<70><01>quote)<01>Promisec<00><00><00>eZdZ<02>fd<01>Z<03>xZS)<02>DjangoUnicodeDecodeErrorc<00>l<00><01>t<00>|<00><00><00>d|j<00>dt|j<00><00>d<03>S)Nz. You passed in z (<28>))<04>super<65>__str__<5F>object<63>type)<02>self<6C> __class__s <20><>DE:\Project\pygoedge\.venv\Lib\site-packages\django/utils/encoding.pyr z DjangoUnicodeDecodeError.__str__ s*<00><><00> <11>G<EFBFBD>O<EFBFBD> <1D> <10>K<EFBFBD>K<EFBFBD> <10><14><1B><1B> <1D>
<EFBFBD>
<EFBFBD>)<05>__name__<5F>
__module__<EFBFBD> __qualname__r <00> __classcell__)rs@rr r s <00><><00>
<EFBFBD>
rr c<00>B<00>t|t<00>r|St||||<03>S)z<>
Return a string representing 's'. Treat bytestrings using the 'encoding'
codec.
If strings_only is True, don't convert (some) non-string-like objects.
)<03>
isinstancer<00> force_str<74><04>s<>encoding<6E> strings_only<6C>errorss r<00> smart_strr s$<00><00><12>!<21>W<EFBFBD><1D><10><08> <14>Q<EFBFBD><08>,<2C><06> 7<>7rc<00>"<00>t|t<00>S)z<>Determine if the object instance is of a protected type.
Objects of protected types are preserved as-is when passed to
force_str(strings_only=True).
)r<00>_PROTECTED_TYPES)<01>objs r<00>is_protected_typer$,s<00><00> <16>c<EFBFBD>+<2B> ,<2C>,rc<00><><00>tt|<00>t<00>r|S|r t|<00>r|S t |t
<00>rt|||<03>}|St|<00>} |S#t $r}t|j<00>d<01>d}~wwxYw)z<>
Similar to smart_str(), except that lazy instances are resolved to
strings, rather than kept as lazy objects.
If strings_only is True, don't convert (some) non-string-like objects.
N) <09>
issubclassr<00>strr$r<00>bytes<65>UnicodeDecodeErrorr <00>args)rrrr<00>es rrr5s<><00><00><12>$<24>q<EFBFBD>'<27>3<EFBFBD><1F><10><08><13>)<29>!<21>,<2C><10><08>:<3A> <15>a<EFBFBD><15> <1F><13>A<EFBFBD>x<EFBFBD><16>(<28>A<EFBFBD>
<0A>H<EFBFBD><14>A<EFBFBD><06>A<EFBFBD> <0A>H<EFBFBD><48> <1E>:<3A>&<26><01><06><06>/<2F>T<EFBFBD>9<><39>:<3A>s<00>A<00> A<00> A:<03>"A5<03>5A:c<00>B<00>t|t<00>r|St||||<03>S)z<>
Return a bytestring version of 's', encoded as specified in 'encoding'.
If strings_only is True, don't convert (some) non-string-like objects.
)rr<00> force_bytesrs r<00> smart_bytesr.Ks$<00><00> <12>!<21>W<EFBFBD><1D><10><08> <16>q<EFBFBD>(<28>L<EFBFBD>&<26> 9<>9rc<00><><00>t|t<00>r)|dk(r|S|jd|<03>j||<03>S|r t |<00>r|St|t
<00>r t|<00>St |<00>j||<03>S)z<>
Similar to smart_bytes, except that lazy instances are resolved to
strings, rather than kept as lazy objects.
If strings_only is True, don't convert (some) non-string-like objects.
<20>utf-8)rr(<00>decode<64>encoder$<00>
memoryviewr'rs rr-r-Wsq<00><00><12>!<21>U<EFBFBD><1B> <13>w<EFBFBD> <1E><14>H<EFBFBD><14>8<EFBFBD>8<EFBFBD>G<EFBFBD>V<EFBFBD>,<2C>3<>3<>H<EFBFBD>f<EFBFBD>E<> E<><13>)<29>!<21>,<2C><10><08><11>!<21>Z<EFBFBD> <20><14>Q<EFBFBD>x<EFBFBD><0F> <0E>q<EFBFBD>6<EFBFBD>=<3D>=<3D><18>6<EFBFBD> *<2A>*rc<00>Z<00>|<00>|St|t<00>r t|<00>}t|d<01><02>S)u<>
Convert an Internationalized Resource Identifier (IRI) portion to a URI
portion that is suitable for inclusion in a URL.
This is the algorithm from RFC 3987 Section 3.1, slightly simplified since
the input is assumed to be a string rather than an arbitrary byte stream.
Take an IRI (string or UTF-8 bytes, e.g. '/I ♥ Django/' or
b'/I ♥ Django/') and return a string containing the encoded
result with ASCII chars only (e.g. '/I%20%E2%99%A5%20Django/').
z/#%[]=:;$&()+,!?*@'~<7E><01>safe)rrr'r)<01>iris r<00>
iri_to_urir8ks/<00><00>0 <0B>{<7B><12>
<EFBFBD> <13>C<EFBFBD><17> !<21><11>#<23>h<EFBFBD><03> <10><13>1<> 2<>2r)<04>-<00>.<00>_<00>~<00>A<00>[<00>a<00>{)z%02xz%02X<32>0123456789ABCDEFabcdef<65>c<00>b<00>|<00>|St|<00>}|jd<02>}t|<01>dk(r|}nf|dg}|j}t}|ddD]5}|dd}||vr|||dd<00>||dd<00><00>&|d<02>||<06><00>7dj |<03>}t |<02>j<00>S)uI
Convert a Uniform Resource Identifier(URI) into an Internationalized
Resource Identifier(IRI).
This is the algorithm from RFC 3987 Section 3.2, excluding step 4.
Take an URI in ASCII bytes (e.g. '/I%20%E2%99%A5%20Django/') and return
a string containing the encoded result (e.g. '/I%20♥%20Django/').
N<>%<25>r<00>r)r-<00>split<69>len<65>append<6E>
_hextobyte<EFBFBD>join<69>repercent_broken_unicoder1)<08>uri<72>bitsr7<00>partsrI<00> hextobyte<74>item<65>hexs r<00>
uri_to_irirS<00>s<><00><00> <0B>{<7B><12>
<EFBFBD>
<15>c<EFBFBD>
<1A>C<EFBFBD>
<0F>9<EFBFBD>9<EFBFBD>T<EFBFBD>?<3F>D<EFBFBD>
<EFBFBD>4<EFBFBD>y<EFBFBD>A<EFBFBD>~<7E><11><03><15>a<EFBFBD><17> <09><05><16><1C><1C><06><1E> <09><18><11><12>H<EFBFBD>D<EFBFBD><16>r<EFBFBD><01>(<28>C<EFBFBD><12>i<EFBFBD><1F><16>y<EFBFBD><14>b<EFBFBD>q<EFBFBD><18>*<2A>+<2B><16>t<EFBFBD>A<EFBFBD>B<EFBFBD>x<EFBFBD> <20><16>t<EFBFBD> <0C><16>t<EFBFBD> <0C><1D><12>h<EFBFBD>h<EFBFBD>u<EFBFBD>o<EFBFBD><03> #<23>C<EFBFBD> (<28> /<2F> /<2F> 1<>1rc<00><00>t|d<01><02>S)zh
Escape the unsafe characters from the path portion of a Uniform Resource
Identifier (URI).
z/:@&+$,-_.!~*'()r5r<00><01>paths r<00>escape_uri_pathrW<00>s<00><00> <11><14>.<2E> /<2F>/rc<00>B<00>|jd<01>jd<02>S)z:Return the Punycode of the given domain if it's non-ASCII.<2E>idna<6E>ascii)r2r1)<01>domains r<00>punycoder\<00>s<00><00> <11>=<3D>=<3D><16> <20> '<27> '<27><07> 0<>0rc<00>D<00>g} |j<00>dj|<01>|zS#t$rl}t||j|j
d<02><03>}|j |d|j|j<00>z<00>||j
d}Yd}~nd}~wwxYw<01><>)z<>
As per RFC 3987 Section 3.2, step three of converting a URI into an IRI,
repercent-encode any octet produced that is not part of a strictly legal
UTF-8 octet sequence.
rs/#%[]=:;$&()+,!?*@'~r5N)r1rKr)r<00>start<72>endrIr2)rV<00> changed_partsr+<00> repercents rrLrL<00>s<><00><00> <17>M<EFBFBD>
<0E> 2<> <10>K<EFBFBD>K<EFBFBD>M<EFBFBD><17>8<EFBFBD>8<EFBFBD>M<EFBFBD>*<2A>T<EFBFBD>1<> 1<><31>"<22> !<21><1E>d<EFBFBD>1<EFBFBD>7<EFBFBD>7<EFBFBD>Q<EFBFBD>U<EFBFBD>U<EFBFBD>3<>:Q<>R<>I<EFBFBD> <19> <20> <20><14>i<EFBFBD><01><07><07><1F>9<EFBFBD>3C<33>3C<33>3E<33>!E<> F<><17><01><05><05><07>=<3D>D<EFBFBD><44>  !<21><> s<00>)<00> B<03>A"B<03>Bc<00>V<00>|<00>|Stt|<00>jdd<02>d<03><04>S)aAConvert a file system path to a URI portion that is suitable for
inclusion in a URL.
Encode certain chars that would normally be recognized as special chars
for URIs. Do not encode the ' character, as it is a valid character
within URIs. See the encodeURIComponent() JavaScript function for details.
<20>\<5C>/z/~!*()'r5)rr'<00>replacerUs r<00>filepath_to_urirf<00>s.<00><00> <0C>|<7C><13> <0B> <11><13>T<EFBFBD><19>"<22>"<22>4<EFBFBD><13>-<2D>I<EFBFBD> ><3E>>rc<00><><00> tj<00>dxsd}tj|<00>|S#t$rd}Y|SwxYw)z<>
The encoding for the character type functions. Fallback to 'ascii' if the
#encoding is unsupported by Python or could not be determined. See tickets
#10335 and #5846.
rErZ)<05>locale<6C> getlocale<6C>codecs<63>lookup<75> Exception)rs r<00>get_system_encodingrm<00>sM<00><00> <1B><19>#<23>#<23>%<25>a<EFBFBD>(<28>3<>G<EFBFBD><08><0E> <0A> <0A>h<EFBFBD><1F> <14>O<EFBFBD><4F> <15><1B><1A><08> <13>O<EFBFBD><1B>s<00>04<00> A<03>A)r0F<>strict)'rj<00>datetimerh<00>decimalr<00>typesr<00> urllib.parser<00>django.utils.functionalrr)r r <00>int<6E>float<61>date<74>timer"r$rr.r-r8<00>range<67> _ascii_rangesr2r(rJ<00>_hexdig<69>update<74>fromhexrSrWr\rLrfrm<00>DEFAULT_LOCALE_ENCODING)<05> ascii_range<67>char<61>fmt<6D>a<>bs00000r<00><module>r<>si<00><01> <0A><0F> <0A><1B><1A><1E>+<2B>
<EFBFBD>1<>
<EFBFBD>
8<> <0A><07> <09> <0B> <0C><15><15> <0C>M<EFBFBD>M<EFBFBD> <0C>M<EFBFBD>M<EFBFBD><02><10>-<2D> <0A>, :<3A>+<2B>(3<>B#<23>E<EFBFBD>"<22>b<EFBFBD>M<EFBFBD>5<EFBFBD><12>S<EFBFBD>><3E>B<> <0A>%<25><02>$<24> <0B><1B><04><1F><03> <09>4<EFBFBD>Z<EFBFBD><17><17><19>5<EFBFBD>$<24><17>><3E>)<29> <20><1A><1B><1A>$<24><02>
<EFBFBD> #<23><07>
<EFBFBD><11><11>5<<3C>Q<EFBFBD>R<EFBFBD>[<5B>R<>[<5B><01>'<27>Q<EFBFBD>a<EFBFBD>!<21>e<EFBFBD>^<5E>^<5E><15>u<EFBFBD>}<7D>}<7D>Q<EFBFBD><11>U<EFBFBD>+<2B>+<2B>'<27><15>[<5B>R<><02>
!2<>H0<>"1<>
2<>( ?<3F> <14>.<2E>/<2F><17><>s<02><>Ss <00>0D(<08>4D/