Files
order/.venv/Lib/site-packages/flask/__pycache__/debughelpers.cpython-312.pyc

55 lines
9.1 KiB
Plaintext
Raw Normal View History

2025-08-27 21:11:48 +08:00
<EFBFBD>
x<>gK<00><00><><00>dZddlZddlmZddlmZddlmZddlmZddl m
Z
dd l m Z Gd
<EFBFBD>d e e<0E>ZeGd <0C>d ee <0A><00>ZGd<0E>de <0A>Zd<10>Zd<11>Zd<12>Zd<13>Zy)z<>
flask.debughelpers
~~~~~~~~~~~~~~~~~~
Various helpers to make the development experience better.
:copyright: 2010 Pallets
:license: BSD-3-Clause
<EFBFBD>N)<01>warn<72>)<01>implements_to_string)<01> text_type)<01>Flask)<01> Blueprint)<01>_request_ctx_stackc<00><00>eZdZdZy)<03>UnexpectedUnicodeErrorzjRaised in places where we want some better error reporting for
unexpected unicode or binary data.
N)<04>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F><00><00>;D:\mooc\order\.venv\Lib\site-packages\flask/debughelpers.pyr r s<00><00>rr c<00><00>eZdZdZd<02>Zd<03>Zy)<05>DebugFilesKeyErrorz<72>Raised from request.files during debugging. The idea is that it can
provide a better error message than just a generic KeyError/BadRequest.
c<00><><00>|jj|<02>}d|<02>d|j<00>d<03>g}|r*|jddj d<06>|D<00><00>z<00>dj |<04>|_y)NzYou tried to access the file "z[" in the request.files dictionary but it does not exist. The mimetype for the request is "z<>" instead of "multipart/form-data" which means that no file contents were transmitted. To fix this error you should provide enctype="multipart/form-data" in your form.zI
The browser instead transmitted some file names. This was submitted: %sz, c3<00>&K<00>|] }d|z<00><01><00> y<01>w)z"%s"Nr<00><02>.0<EFBFBD>xs r<00> <genexpr>z.DebugFilesKeyError.__init__.<locals>.<genexpr>.s<00><00><><00>4V<34><1C>A<EFBFBD>V<EFBFBD>a<EFBFBD>Z<EFBFBD><1C>s<00><01>)<06>form<72>getlist<73>mimetype<70>append<6E>join<69>msg)<05>self<6C>request<73>key<65> form_matches<65>bufs r<00>__init__zDebugFilesKeyError.__init__!sn<00><00><1E>|<7C>|<7C>+<2B>+<2B>C<EFBFBD>0<> <0C><13>G<EFBFBD>$<24>$<24>  &<26>
<EFBFBD><03> <18> <0F>J<EFBFBD>J<EFBFBD>)<29>+/<2F>9<EFBFBD>9<EFBFBD>4V<34><1C>4V<34>+V<>W<01> <0E><16>7<EFBFBD>7<EFBFBD>3<EFBFBD><<3C><04>rc<00><00>|jS<00>N)r!)r"s r<00>__str__zDebugFilesKeyError.__str__2s <00><00><13>x<EFBFBD>x<EFBFBD>rN)r r rrr'r*rrrrrs<00><00><08> <20>"rrc<00><00>eZdZdZd<02>Zy)<04>FormDataRoutingRedirectz<74>This exception is raised by Flask in debug mode if it detects a
redirect caused by the routing system when the request method is not
GET, HEAD or OPTIONS. Reasoning: form data will be dropped.
c<00><><00>|j}d|j<00>d|j<00>d<03>g}|jdz|jj d<05>dk(r|j d<07>|j d|j z<00>|j d <09>tj|d
j|<03>jd <0B><00>y) Nz A request was sent to this URL (zD) but a redirect was issued automatically by the routing system to "z".<2E>/<2F>?rz<> The URL was defined with a trailing slash so Flask will automatically redirect to the URL with the trailing slash if it was accessed without one.z<> Make sure to directly send your %s-request to this URL since we can't make browsers or HTTP clients redirect with form data reliably or without user interaction.z3
Note: this exception is only raised in debug moderzutf-8) <0B>routing_exception<6F>url<72>new_url<72>base_url<72>splitr<00>method<6F>AssertionErrorr'r <00>encode)r"r#<00>excr&s rr'z FormDataRoutingRedirect.__init__<s<><00><00><15>'<27>'<27><03><17>{<7B>{<7B>C<EFBFBD>K<EFBFBD>K<EFBFBD> )<29>
<EFBFBD><03> <13> <1B> <1B>c<EFBFBD> !<21>S<EFBFBD>[<5B>[<5B>%6<>%6<>s<EFBFBD>%;<3B>A<EFBFBD>%><3E> ><3E> <0F>J<EFBFBD>J<EFBFBD><1F> <0E> <0C>
<EFBFBD>
<EFBFBD> C<01>EL<45>^<5E>^<5E> T<01>
<EFBFBD>
<0C>
<EFBFBD>
<EFBFBD>J<>K<><16><1F><1F><04>b<EFBFBD>g<EFBFBD>g<EFBFBD>c<EFBFBD>l<EFBFBD>&9<>&9<>'<27>&B<>CrN)r r rrr'rrrr,r,6s <00><00><08>
Drr,c<00><><00><00><02><00>jj<00>G<00><02>fd<01>d<02><02>}<01>j|_<00>j|_|<01>j_y)z<>Since Flask 0.8 we're monkeypatching the files object in case a
request is detected that does not use multipart form data but the files
object is accessed.
c<00><00><02>eZdZ<02><00>fd<01>Zy)<03>.attach_enctype_error_multidict.<locals>.newclsc<00>z<00><02> <00>j||<01>S#t$r|<01>jvr<01>t<00>|<01><00>wxYwr))<04> __getitem__<5F>KeyErrorrr)r"r$<00>oldclsr#s <20><>rr=z:attach_enctype_error_multidict.<locals>.newcls.__getitem__^sF<00><><00> 7<><1D>)<29>)<29>$<24><03>4<>4<><34><1B> 7<><16>g<EFBFBD>l<EFBFBD>l<EFBFBD>*<2A><19>(<28><17>#<23>6<>6<> 7<>s<00><00>%:N)r r rr=)r?r#s<00><>r<00>newclsr;]s<00><><00> 7rr@N)<04>files<65> __class__r r )r#r@r?s` @r<00>attach_enctype_error_multidictrCVsG<00><><00>
<15>]<5D>]<5D> $<24> $<24>F<EFBFBD>7<><16>7<><1D>o<EFBFBD>o<EFBFBD>F<EFBFBD>O<EFBFBD><1E>)<29>)<29>F<EFBFBD><15>$<24>G<EFBFBD>M<EFBFBD>M<EFBFBD>rc #<00><>K<00>dt|<00>j<00>dt|<00>j<00><01><04><01>t|jj <00><00>D]<5D>\}}|j d<03>r<01>t|ttf<02>r)td<04>|D<00><00>s<01>Ad|z<00><01>|D] }d|z<00><01><00> <00>Wt|tttttf<05>s<01>}|<01>d|<02><02><03><01><00><>y<00>w)Nzclass: <20>.<2E>_c3<00>HK<00>|]}t|ttf<02><00><01><00>y<00>wr))<03>
isinstance<EFBFBD>strrrs rrz$_dump_loader_info.<locals>.<genexpr>qs<00><00><><00>F<><05>1<EFBFBD>z<EFBFBD>!<21>c<EFBFBD>9<EFBFBD>%5<>6<><05>s<00> "z%s:z - %sz: )<10>typer r <00>sorted<65>__dict__<5F>items<6D>
startswithrH<00>tuple<6C>list<73>allrIr<00>int<6E>float<61>bool)<04>loaderr$<00>value<75>items r<00>_dump_loader_inforXks<><00><00><><00> <20><16>L<EFBFBD>3<>3<>T<EFBFBD>&<26>\<5C>5J<35>5J<35>
K<EFBFBD>K<><1C>V<EFBFBD>_<EFBFBD>_<EFBFBD>2<>2<>4<>5<>
<EFBFBD><03>U<EFBFBD> <0E>><3E>><3E>#<23> <1E> <14> <15>e<EFBFBD>e<EFBFBD>T<EFBFBD>]<5D> +<2B><16>F<><05>F<>F<><18><17>#<23>+<2B> <1D><1D><04><1E><14>o<EFBFBD>%<25><1E> <14><1B>E<EFBFBD>C<EFBFBD><19>C<EFBFBD><15><04>#E<>F<> <14><1D>u<EFBFBD>%<25>%<25>6<>s<00>CCc<00>p<00>d|zg}d}d}tj}|<06>,|jj<00>|jj}t |<02>D]<5D>\}\}} }
t | t <00>rd| jz} n9t | t<00>rd| j<00>d| j<00>d<07>} n t| <09>} |jd|d z| fz<00>t|<08>D]} |jd
| z<00><00>|
<EFBFBD>d } nd |
d xsd z} |d z }|jd| z<00><00><>d}|dk(r|jd<10>d}n|d kDr|jd<12>d}|<05>8|r6|jd|z<00>|jd<14>|jd<15>|jjdj|<03><00>y)z2This should help developers understand what failedzLocating template "%s":rNzapplication "%s"z blueprint "z" (<28>)z% 5d: trying loader of %srz %szno matchz
found (%r)z<string>z -> %sFz'Error: the template could not be found.Tz<Warning: multiple loaders returned a match for the template.zQ The template was looked up from an endpoint that belongs to the blueprint "%s".z9 Maybe you did not place a template in the right folder?z7 See http://flask.pocoo.org/docs/blueprints/#templates<65>
)r <00>topr#<00> blueprint<6E> enumeraterHr<00> import_namer<00>name<6D>reprrrX<00>logger<65>infor )<0F>app<70>template<74>attemptsrc<00> total_foundr]<00>reqctx<74>idxrU<00>srcobj<62>triple<6C>src_info<66>line<6E>detail<69> seems_fishys r<00>!explain_template_loading_attemptsrp|s<><00><00> %<25><08> 0<> 1<>D<EFBFBD><13>K<EFBFBD><14>I<EFBFBD> <1F> #<23> #<23>F<EFBFBD> <0A><19>f<EFBFBD>n<EFBFBD>n<EFBFBD>6<>6<>B<><1A>N<EFBFBD>N<EFBFBD>,<2C>,<2C> <09>)2<>8<EFBFBD>)<<3C>%<25><03> %<25>f<EFBFBD>f<EFBFBD>f<EFBFBD> <15>f<EFBFBD>e<EFBFBD> $<24>)<29>F<EFBFBD>,><3E>,><3E>><3E>H<EFBFBD> <17><06> <09> *<2A>06<30> <0B> <0B>V<EFBFBD>=O<>=O<>P<>H<EFBFBD><1B>F<EFBFBD>|<7C>H<EFBFBD> <0C> <0B> <0B>/<2F>3<EFBFBD><11>7<EFBFBD>H<EFBFBD>2E<32>E<>F<>%<25>f<EFBFBD>-<2D>D<EFBFBD> <10>K<EFBFBD>K<EFBFBD> <0B>d<EFBFBD>*<2A> +<2B>.<2E> <12>><3E><1F>F<EFBFBD>!<21>V<EFBFBD>A<EFBFBD>Y<EFBFBD>%<<3C>*<2A>=<3D>F<EFBFBD> <17>1<EFBFBD> <1C>K<EFBFBD> <0C> <0B> <0B>N<EFBFBD>V<EFBFBD>+<2B>,<2C>%*=<3D>(<18>K<EFBFBD><12>a<EFBFBD><17> <0C> <0B> <0B>=<3D>><3E><1A> <0B> <14>q<EFBFBD><1F> <0C> <0B> <0B>R<>S<><1A> <0B><10><1C><1B> <0C> <0B> <0B> -<2D>/8<> 9<>
<EFBFBD> <0A> <0B> <0B>O<>P<> <0C> <0B> <0B>M<>N<><07>J<EFBFBD>J<EFBFBD>O<EFBFBD>O<EFBFBD>D<EFBFBD>I<EFBFBD>I<EFBFBD>d<EFBFBD>O<EFBFBD>$rc<00>v<00>tjjd<01>dk7rtt d<03>d<04><05>yy)N<>WERKZEUG_RUN_MAIN<49>truez<65>Silently ignoring app.run() because the application is run from the flask command line executable. Consider putting app.run() behind an if __name__ == "__main__" guard to silence this warning.<2E>)<01>
stacklevel)<05>os<6F>environ<6F>getr<00>Warningrrr<00>explain_ignored_app_runrz<00>s7<00><00> <09>z<EFBFBD>z<EFBFBD>~<7E>~<7E>)<29>*<2A>f<EFBFBD>4<> <0C> <13><1B> <0E><19>
<EFBFBD>5r)rrv<00>warningsr<00>_compatrrrdr<00>
blueprintsr<00>globalsr r6<00> UnicodeErrorr r>rr,rCrXrprzrrr<00><module>r<>sp<00><01><04>
<EFBFBD><19>)<29><1E><16>!<21>'<27><08>^<5E>\<5C><08> <16><18><18>><3E><18><16><18>4D<01>n<EFBFBD>D<01>@%<25>*&<26>"-%<25>` 
r