Files
Trancribe/venv/lib/python3.12/site-packages/cffi/__pycache__/verifier.cpython-312.pyc

44 lines
16 KiB
Plaintext
Raw Normal View History

<EFBFBD>
%n!j<>+<00><00>2<00>ddlZddlZddlZddlZddlZddlmZddlmZddlm Z ejdk\rddl Z d<07>Z nddlZd<08>Z ejd k\r ejZnGd
<EFBFBD>d ej"<00>ZGd <0C>d e<12>ZdZd<0F>Zdad<10>Zd<11>Zdd<12>Zd<13>Zd<14>Zy)<16>N<>)<01>__version_verifier_modules__)<01> ffiplatform)<01>VerificationError)<02>rc<00><<00>tjjddS<00>N)<03> importlib<69> machinery<72>EXTENSION_SUFFIXES<45><00><00>O/home/jean/linux-transcriber/venv/lib/python3.12/site-packages/cffi/verifier.py<70>_extension_suffixesr s<00><00><18>"<22>"<22>5<>5<>a<EFBFBD>8<>8rc<00><><00>tj<00>D<00><00><01>cgc]\}}}|tjk(r|<00><02>c}}}Scc}}}wr )<03>imp<6D> get_suffixes<65> C_EXTENSION)<03>suffix<69>_<>types rrrsA<00><00>.1<EFBFBD>.><3E>.><3E>.@<40>,<2C>,<2C>?<3F>6<EFBFBD>1<EFBFBD>d<EFBFBD><17>3<EFBFBD>?<3F>?<3F>*<2A><17>,<2C> ,<2C><>,s<00> ><08>rc<00><00><00>eZdZ<02>fd<01>Z<03>xZS)<02>NativeIOc<00>n<00><01>t|t<00>r|jd<01>}tt|<00>|<01>y)N<>ascii)<06>
isinstance<EFBFBD>unicode<64>encode<64>superr<00>write)<03>self<6C>s<> __class__s <20>rr!zNativeIO.writes*<00><><00><19>!<21>W<EFBFBD>%<25><15>H<EFBFBD>H<EFBFBD>W<EFBFBD>%<25><01> <11>(<28>D<EFBFBD> '<27><01> *r)<05>__name__<5F>
__module__<EFBFBD> __qualname__r!<00> __classcell__)r$s@rrrs <00><><00> +<2B> +rrc<00>f<00>eZdZ dd<02>Zdd<03>Zd<04>Zd<05>Zd<06>Zd<07>Zd<08>Z d <09>Z
d
<EFBFBD>Z d <0B>Z dd <0C>Z d <0A>Zd<0E>Zy)<11>VerifierNc  <00><><00>|jjr"td|jj<00><01><02><00>||_||_|st j | <0B>} t||<07>} | |<00>|_|jj| <0B>| |_
|j| |
<EFBFBD>|_ |r|<06>rtd<02><00>djdtj ddzt"| g|j$z<00>}tj dk\r|j'd<07>}t)t+j,|ddd<05><00>d z<00>}|j/d
<EFBFBD>j1d <0B>}t)t+j,|d dd<05><00>d z<00>}|j/d <0A>j1d <0B>}d|<06>d|jj2<00>|<0F>|<10><01>}t5<00>d}|xs
t7<00>|_t:j<j|j8||z<00>|_t:j<j|j8||z<00>|_ ||_!d|_"d|_#y)NzIfeature not supported with ffi.verify(), but only with ffi.set_source(): z)can't specify both 'modulename' and 'tag'<27>z%d.%d<>rzutf-8rl<00><EFBFBD><00>0x<30>Lr<00>0<>_cffi_rF)$<24>_parser<65>_uses_new_featurer<00>ffi<66>preambler<00>flatten<65>_locate_engine_class<73>_vengine<6E>patch_extension_kwds<64>flags<67>make_relative_to<74>kwds<64> TypeError<6F>join<69>sys<79> version_infor<00> _cdefsourcesr<00>hex<65>binascii<69>crc32<33>lstrip<69>rstrip<69>
_class_key<EFBFBD>_get_so_suffixes<65>_caller_dir_pycache<68>tmpdir<69>os<6F>path<74>sourcefilename<6D>modulefilename<6D> ext_package<67> _has_source<63> _has_module)r"r4r5rJ<00>
modulenamerO<00>tag<61>force_generic_engine<6E>source_extensionr:<00> relative_tor<<00>flattened_kwds<64> vengine_class<73>key<65>k1<6B>k2rs r<00>__init__zVerifier.__init__ s<00><00> <0F>;<3B>;<3B> (<28> (<28>#<23>/2<>{<7B>{<7B>/L<>/L<>O<01>P<01> P<01><17><04><08> <20><04> <0A><19>(<28>0<>0<><14>6<>N<EFBFBD>,<2C>S<EFBFBD>2F<32>G<> <0A>%<25>d<EFBFBD>+<2B><04> <0A> <0C> <0A> <0A>*<2A>*<2A>4<EFBFBD>0<><1A><04>
<EFBFBD><18>)<29>)<29>$<24> <0B><<3C><04> <09> <15><12><1F> K<>L<>L<><18>+<2B>+<2B>w<EFBFBD><13>)9<>)9<>"<22>1<EFBFBD>)=<3D>=<3D>;<3B>'<27><1E>9<>"<22>.<2E>.<2E>/<2F>0<>C<EFBFBD><13><1F><1F>4<EFBFBD>'<27><19>j<EFBFBD>j<EFBFBD><17>)<29><03><14>X<EFBFBD>^<5E>^<5E>C<EFBFBD><01><04>1<EFBFBD><04>I<EFBFBD>.<2E><1A>;<3B><<3C>B<EFBFBD><13><19><19>4<EFBFBD><1F>'<27>'<27><03>,<2C>B<EFBFBD><14>X<EFBFBD>^<5E>^<5E>C<EFBFBD><01><04>1<EFBFBD><04>I<EFBFBD>.<2E><1A>;<3B><<3C>B<EFBFBD><13><19><19>3<EFBFBD><1E>&<26>&<26>s<EFBFBD>+<2B>B<EFBFBD>.1<EFBFBD>4<EFBFBD>=<3D>=<3D>3K<33>3K<33>.0<EFBFBD>"<22>6<>J<EFBFBD>!<21>#<23>A<EFBFBD>&<26><06><1C>5<> 3<> 5<><04> <0B> <20>g<EFBFBD>g<EFBFBD>l<EFBFBD>l<EFBFBD>4<EFBFBD>;<3B>;<3B>
<EFBFBD>EU<EFBFBD>8U<EFBFBD>V<><04><1B> <20>g<EFBFBD>g<EFBFBD>l<EFBFBD>l<EFBFBD>4<EFBFBD>;<3B>;<3B>
<EFBFBD>V<EFBFBD>8K<EFBFBD>L<><04><1B>&<26><04><18> <20><04><18> <20><04>rc<00><><00>|jj5|jr |<01> td<02><00>|j |<01>ddd<01>y#1swYyxYw)zkWrite the C source code. It is produced in 'self.sourcefilename',
which can be tweaked beforehand.Nzsource code already written)r4<00>_lockrPr<00> _write_source<63>r"<00>files r<00> write_sourcezVerifier.write_sourceIsO<00><00><12>X<EFBFBD>X<EFBFBD>^<5E>^<5E> %<25><13><1F><1F>D<EFBFBD>L<EFBFBD>'<27>1<>3<>3<> <10> <1E> <1E>t<EFBFBD> $<24>  %<25> %<25> %<25>s <00>+A <03> Ac<00><><00>|jj5|jr td<01><00>|js|j <00>|j <00>ddd<02>y#1swYyxYw)z<>Write the C source code (if not done already) and compile it.
This produces a dynamic link library in 'self.modulefilename'.zmodule already compiledN)r4r^rQrrPr_<00>_compile_module<6C>r"s r<00>compile_modulezVerifier.compile_moduleRsZ<00><00><12>X<EFBFBD>X<EFBFBD>^<5E>^<5E> #<23><13><1F><1F>'<27>(A<>B<>B<><17>#<23>#<23><14>"<22>"<22>$<24> <10> <20> <20> "<22>  #<23> #<23> #<23>s <00>AA$<03>$A-c<00>"<00>|jj5|jsH|j<00>|js,|js|j <00>|j <00>|j<00>cddd<01>S#1swYyxYw)a"Get a C module from this Verifier instance.
Returns an instance of a FFILibrary class that behaves like the
objects returned by ffi.dlopen(), but that delegates all
operations to the C module. If necessary, the C code is written
and compiled first.
N)r4r^rQ<00>_locate_modulerPr_rd<00> _load_libraryres r<00> load_libraryzVerifier.load_library\so<00><00><12>X<EFBFBD>X<EFBFBD>^<5E>^<5E> (<28><17>#<23>#<23><14>#<23>#<23>%<25><1B>'<27>'<27><1F>+<2B>+<2B><1C>*<2A>*<2A>,<2C><18>(<28>(<28>*<2A><17>%<25>%<25>'<27> (<28> (<28> (<28>s <00>A$B<03>Bc<00><><00>tjj|j<00>}|j dd<02>d}|j d<04>rt td<05>r|dd}|S)N<>.rr<00>_d<5F>gettotalrefcount<6E><74><EFBFBD><EFBFBD><EFBFBD>)rKrL<00>basenamerN<00>split<69>endswith<74>hasattrr?)r"rps r<00>get_module_namezVerifier.get_module_namels]<00><00><15>7<EFBFBD>7<EFBFBD>#<23>#<23>D<EFBFBD>$7<>$7<>8<><08><1C>><3E>><3E>#<23>q<EFBFBD>)<29>!<21>,<2C><08> <14> <1C> <1C>T<EFBFBD> "<22>w<EFBFBD>s<EFBFBD>4F<34>'G<><1F><03><12>}<7D>H<EFBFBD><17>rc<00>H<00>|js;|jj5|js|j<00>ddd<00>t j
|j <00>}|j<00>}t j||fi|j<00><01>S#1swY<00>YxYwr )
rPr4r^r_r<00>maybe_relative_pathrMrt<00> get_extensionr<)r"<00>
sourcename<EFBFBD>modnames rrwzVerifier.get_extensionws<><00><00><13><1F><1F><15><18><18><1E><1E> )<29><1B>'<27>'<27><18>&<26>&<26>(<28> )<29>!<21>4<>4<>T<EFBFBD>5H<35>5H<35>I<>
<EFBFBD><16>&<26>&<26>(<28><07><1A>(<28>(<28><1A>W<EFBFBD>J<><04> <09> <09>J<>J<>  )<29> )<29>s <00>B<03>B!c<00>.<00>|jjSr )r8<00>_gen_python_moduleres r<00>generates_python_modulez Verifier.generates_python_module<6C>s<00><00><13>}<7D>}<7D>/<2F>/<2F>/rc<00><><00>|r<>tjj|<02>r<>tjj|<02>}|j<00>}tj
D]c}||vs<01>||}t |ttf<02>std|<04>d<02><03><00>|D<00>cgc]"}tjj||<06><00><02>$}}|||<<00>e|Scc}w)Nz keyword 'z' should be a list or tuple) rKrL<00>dirname<6D>copyr<00>LIST_OF_FILE_NAMESr<00>list<73>tupler=r>)r"r<rVr~rY<00>lst<73>fns rr;zVerifier.make_relative_to<74>s<><00><00> <16>2<EFBFBD>7<EFBFBD>7<EFBFBD>?<3F>?<3F>;<3B>7<><18>g<EFBFBD>g<EFBFBD>o<EFBFBD>o<EFBFBD>k<EFBFBD>2<>G<EFBFBD><17>9<EFBFBD>9<EFBFBD>;<3B>D<EFBFBD>"<22>5<>5<> $<24><03><16>$<24>;<3B><1E>s<EFBFBD>)<29>C<EFBFBD>%<25>c<EFBFBD>D<EFBFBD>%<25>=<3D>9<>'<27>+.<2E>)1<>2<>2<>?B<>C<><12>2<EFBFBD>7<EFBFBD>7<EFBFBD><<3C><<3C><07><12>4<>C<>C<EFBFBD>C<> #<23>D<EFBFBD><13>I<EFBFBD> $<24><14> <0B><>Ds<00>'C c<00><><00>tjj|j<00>sr|jr' t |jdddg<01>}|j}nd}|jj|j<00>|t<00><00>}|<03>y||_|jj<00>d|_ y#t $rYywxYw)N<>__doc__T)rKrL<00>isfilerNrO<00>
__import__<EFBFBD> ImportError<6F>__path__r8<00> find_modulertrH<00> collect_typesrQ)r"<00>pkgrL<00>filenames rrhzVerifier._locate_module<6C>s<><00><00><11>w<EFBFBD>w<EFBFBD>~<7E>~<7E>d<EFBFBD>1<>1<>2<><13><1F><1F><1B>$<24>T<EFBFBD>%5<>%5<>t<EFBFBD>T<EFBFBD>I<EFBFBD>;<3B>O<>C<EFBFBD><1B>|<7C>|<7C><04><1B><04><1B>}<7D>}<7D>0<>0<><14>1E<31>1E<31>1G<31><14>1A<31>1C<31>E<01>H<EFBFBD><17><1F><16>"*<2A>D<EFBFBD> <1F> <0C> <0A> <0A>#<23>#<23>%<25><1F><04><18><>#<23><1B><1A><1B>s<00>B><00>> C
<03> C
c<00><><00>||j_ |jj<00>|j`y#|j`wxYwr )r8<00>_f<5F>write_source_to_fr`s r<00>_write_source_tozVerifier._write_source_to<74>s8<00><00><1F><04> <0A> <0A><18> !<21> <10>M<EFBFBD>M<EFBFBD> +<2B> +<2B> -<2D><14> <0A> <0A> <20><><04> <0A> <0A> <20>s <00>:<00>Ac<00> <00>|<01>|j|<01>yt<00>}|j|<02>|j<00>}tjj |j <00>r4t|j d<01>5}|j<00>|k( }ddd<00>nd}rEt|j <00>t|j d<03>5}|j|<03>ddd<00>d|_ y#1swY<00>XxYw#1swY<00>xYw)N<>rT<72>w) r<>r<00>getvaluerKrL<00>existsrM<00>open<65>read<61> _ensure_dirr!rP)r"ra<00>f<> source_data<74>fp<66> needs_writtens rr_zVerifier._write_source<63>s<><00><00> <0F> <1B> <10> !<21> !<21>$<24> '<27><19>
<EFBFBD>A<EFBFBD> <10> !<21> !<21>!<21> $<24><1B>*<2A>*<2A>,<2C>K<EFBFBD><12>w<EFBFBD>w<EFBFBD>~<7E>~<7E>d<EFBFBD>1<>1<>2<><19>$<24>-<2D>-<2D>s<EFBFBD>3<>C<01>r<EFBFBD>)+<2B><17><17><19>k<EFBFBD>)A<>$B<>M<EFBFBD>C<01>C<01>!%<25> <0A><1D><1B>D<EFBFBD>/<2F>/<2F>0<><19>$<24>-<2D>-<2D>s<EFBFBD>3<>*<2A>r<EFBFBD><16>H<EFBFBD>H<EFBFBD>[<5B>)<29>*<2A> $<24>D<EFBFBD> <1C>C<01>C<01><>*<2A>*<2A>s<00>?C.<03> C:<03>.C7<07>:Dc<00>~<00>tjj|j<00>}t j
||j <00><00>} t j||j<00>}|s5t|j<00>tj||j<00>d|_ y#t$rd}Y<00>LwxYw)NFT)rKrLr~rMr<00>compilerw<00>samefilerN<00>OSErrorr<72><00>shutil<69>moverQ)r"rJ<00>outputfilename<6D>sames rrdzVerifier._compile_module<6C>s<><00><00><13><17><17><1F><1F><14>!4<>!4<>5<><06>$<24>,<2C>,<2C>V<EFBFBD>T<EFBFBD>5G<35>5G<35>5I<35>J<><0E> <19><1E>'<27>'<27><0E><04>8K<38>8K<38>L<>D<EFBFBD><14> <17><04>+<2B>+<2B> ,<2C> <12>K<EFBFBD>K<EFBFBD><0E><04>(;<3B>(;<3B> <<3C><1F><04><18><> <17> <19><18>D<EFBFBD> <19>s<00> B.<00>. B<<03>;B<c<00><><00>|jsJ<00>|j<00>%|jj|j<00>S|jj<00>Sr )rQr:r8rjres rrizVerifier._load_library<72>sG<00><00><13><1F><1F><1F><1F> <0F>:<3A>:<3A> !<21><17>=<3D>=<3D>-<2D>-<2D>d<EFBFBD>j<EFBFBD>j<EFBFBD>9<> 9<><17>=<3D>=<3D>-<2D>-<2D>/<2F> /r)NNN<4E>F<>.cNNr )r%r&r'r\rbrfrjrtrwr|r;rhr<>r_rdrir rrr*r*sN<00><00>>B<>@E<>@D<>'!<21>R%<25>#<23>(<28> <18>K<01>0<> <14>  <20>&!<21>$<24>2  <20>0rr*Fc<00><><00>trd}|s*dtjvrd}n ddl}|j
|urd}|rddlm}|jSddlm }|jS#t$rd}Y<00>CwxYw)NT<4E>__pypy__r<00>?r)<01> vengine_gen)<01> vengine_cpy) <0B>_FORCE_GENERIC_ENGINEr?<00>builtin_module_names<65> _cffi_backendr<64><00>_backendr<64>r<><00>VGenericEnginer<65><00>VCPythonEngine)r4rTr<>r<>r<>s rr7r7<00>su<00><00><1C>#<23><1C> <1F> <15><13>1<>1<> 1<>#'<27> <20> $<24>$<24><13>|<7C>|<7C>=<3D>0<>'+<2B>$<24><1B>!<21><1A>)<29>)<29>)<29>!<21><1A>)<29>)<29>)<29><><1F> $<24> #<23> <0A> $<24>s<00>A<00> A)<03>(A)c<00>f<00>trtStjjd<01>}|r|St j
d<02>j j}tjjtjjtjj|<01>d<03><00>S)N<> CFFI_TMPDIRr-<00> __pycache__) <0C>_TMPDIRrK<00>environ<6F>getr?<00> _getframe<6D>f_code<64> co_filenamerL<00>abspathr>r~)<02>resultr<74>s rrIrI<00>st<00><00><0E><16><0E> <0F>Z<EFBFBD>Z<EFBFBD>^<5E>^<5E>M<EFBFBD> *<2A>F<EFBFBD> <0A><15> <0A><12>}<7D>}<7D>Q<EFBFBD><1F>&<26>&<26>2<>2<>H<EFBFBD> <0A>7<EFBFBD>7<EFBFBD>?<3F>?<3F>2<EFBFBD>7<EFBFBD>7<EFBFBD><<3C><<3C><02><07><07><0F><0F><08>(A<>(<28>*<2A> +<2B>+rc<00><00>|ay)z:Set the temporary directory to use instead of __pycache__.N)r<>)r~s r<00>
set_tmpdirr<EFBFBD>s <00><00><16>Grc<00>n<00>|xs
t<00>} tj|<00>}|rd}nt <00>dj <00>}|D]<5D>}|j <00>j d<04>s<01>#|j <00>j|<03>s |j <00>jd<02>s<01>b tjtjj||<04><00><00><>tjj|d<05>g}|D]<5D>} tj|<06>D]h}tjj||<04>}tjj|<04>r|j|<04><00>Ttj|<04><00>j<00><>y#t$rYywxYw#t$rY<00><01>]wxYw#t$rY<00><>wxYw)z}Clean up the temporary directory by removing all files in it
called `_cffi_*.{c,so}` as well as the `build` subdirectory.Nr<4E>rr1<00>build) rIrK<00>listdirr<72>rH<00>lower<65>
startswithrr<00>unlinkrLr><00>isdir<69>append)rJ<00>keep_so<73>filelistrr<><00> clean_dir<69>dirs r<00>cleanup_tmpdirr<72>sj<00><00><14> ,<2C>*<2A>,<2C>F<EFBFBD><0F><15>:<3A>:<3A>f<EFBFBD>%<25><08><0F><15><06>!<21>#<23>A<EFBFBD>&<26>,<2C>,<2C>.<2E><06><16><15><02> <0A>8<EFBFBD>8<EFBFBD>:<3A> <20> <20><18> *<2A><12><08><08>
<EFBFBD>#<23>#<23>F<EFBFBD>+<2B>r<EFBFBD>x<EFBFBD>x<EFBFBD>z<EFBFBD>/B<>/B<>4<EFBFBD>/H<> <15><12> <09> <09>"<22>'<27>'<27>,<2C>,<2C>v<EFBFBD>r<EFBFBD>2<>3<> <15><14><17><17><1C><1C>f<EFBFBD>g<EFBFBD>.<2E>/<2F>I<EFBFBD><18> <11><03> <11><18>j<EFBFBD>j<EFBFBD><13>o<EFBFBD> "<22><02><17>W<EFBFBD>W<EFBFBD>\<5C>\<5C>#<23>r<EFBFBD>*<2A><02><15>7<EFBFBD>7<EFBFBD>=<3D>=<3D><12>$<24><1D>$<24>$<24>R<EFBFBD>(<28><16>I<EFBFBD>I<EFBFBD>b<EFBFBD>M<EFBFBD>  "<22> <11><> <13><0F><0E><0F><><1B> <15><14> <15><><17> <11> <10> <11>s6<00>F <00>*3F<02>BF(<02> F<03>F<03> F%<05>$F%<05>( F4<05>3F4c<00>T<00>t<00>}|stjdk(rdg}|Sdg}|S)N<>win32z.pydz.so)rr?<00>platform)<01>suffixess rrHrH$s5<00><00>"<22>$<24>H<EFBFBD> <13> <0E><<3C><<3C>7<EFBFBD> "<22><1E>x<EFBFBD>H<EFBFBD> <14>O<EFBFBD><1E>w<EFBFBD>H<EFBFBD> <13>Orc<00><><00>tjj|<00>}|r6tjj|<01>stj|<01>yyyr )rKrLr~r<><00>makedirs)r<>r~s rr<>r<>/s9<00><00><10>g<EFBFBD>g<EFBFBD>o<EFBFBD>o<EFBFBD>h<EFBFBD>'<27>G<EFBFBD><0E>r<EFBFBD>w<EFBFBD>w<EFBFBD>}<7D>}<7D>W<EFBFBD>-<2D>
<EFBFBD> <0B> <0B>G<EFBFBD><1C>.<2E>wr)NF)r?rKrCr<><00>ior<6F>rr<00>errorrr@<00>importlib.machineryr
rr<00>StringIOr<00>BytesIO<49>objectr*r<>r7r<>rIr<>r<>rHr<>r rr<00><module>r<>s<><00><01>%<25>$<24>$<24>*<2A><19>$<24><06><13><13>v<EFBFBD><1D><1E>9<><0F>,<2C>
<07><13><13>t<EFBFBD><1B><11>{<7B>{<7B>H<EFBFBD>+<2B>2<EFBFBD>:<3A>:<3A>+<2B>z0<>v<EFBFBD>z0<>|<1E><15>*<2A>, <0F><07>+<2B><16>
<11>> <14>r