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
U
X±dþã@sâddlZe dd¡e dd¡ddlZddlZddlZddlZddlZddlZddlZzeWne    k
rxe
ZYnXddl m Z m Z mZmZddd„Zd    d
„Zd d „Ze d ¡ZejddkrÊdZndZdd„Zdd„ZdS)éNÚignorezthe imp module is deprecated inz$imp_walk will be removed in a futureé)ÚStringIOÚBytesIOÚget_instructionsÚ
_READ_MODEcCsj| d¡}|dk    r.t|ttfƒr.tj |¡g}|D]2}t ||¡}|ddk    rZ|d     ¡|dg}q2|S)z;
    same as imp.find_module, but handles dotted names
    Ú.Nrr)
ÚsplitÚ
isinstanceÚstrÚunicodeÚosÚpathÚrealpathÚimpÚ find_moduleÚclose)ÚnamerÚnamesÚresult©rúWd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PyInstaller/lib/modulegraph/util.pyÚimp_find_modules
    rc Cs¤ztj|}WnZtk
rhtjD],}z||ƒ}WqVWq$tk
rNYq$Xq$d}tj ||¡YnX|dkršzt ||g¡WStk
r˜YdSX| |¡S)N)ÚsysÚpath_importer_cacheÚKeyErrorÚ
path_hooksÚ ImportErrorÚ
setdefaultrr)rÚ    path_itemÚimporterÚ    path_hookrrrÚ_check_importer_for_path's"
 
r"ccslt dt¡|tjkr2|ddddtjfffVdStj}d}| d¡D] }|D]â}t    ||ƒ}t
|dƒr"|j  d¡s‚|j  d¡r¦t |  |¡ƒ}||jdttjff}nt|j  d¡s¾|j  d    ¡rø| |¡}tt ¡d
t |¡ƒ}||jdd tjff}n"d|jtj |j¡d d tjff}q:qPt|tƒrPq:qPqZ||fVtj ||¡g}qFdStd |fƒ‚dS)zr
    yields namepart, tuple_or_importer for each path item
 
    raise ImportError if a name can not be found.
    z,imp_walk will be removed in a future versionNÚrÚ load_modulez.pyz.pywz.pycz.pyosÚrbéÿÿÿÿzNo module named %s)ÚwarningsÚwarnÚDeprecationWarningrÚbuiltin_module_namesrZ    C_BUILTINrr    r"ÚhasattrÚendswithrÚ
get_sourcerÚ    PY_SOURCEÚget_coderZ    get_magicÚmarshalÚdumpsÚ PY_COMPILEDr ÚsplitextÚ C_EXTENSIONr
ÚtupleÚjoinr)rÚpathsÚresZnamepartrÚfpÚcorrrÚimp_walk=sJþ
 
 
ÿýý
 
 
r;scoding[:=]\s*([-\w.]+)éÚasciizutf-8cCs@tdƒD]2}| ¡}t |¡}|dk    r| d¡ d¡SqtS)Nr<rr=)ÚrangeÚreadlineÚ    cookie_reÚsearchÚgroupÚdecodeÚdefault_encoding)r9ÚiÚlnÚmrrrÚguess_encodingys  
rHccsFdd„t|ƒDƒEdHdV|jD]}t |¡r$t|ƒEdHq$dS)zÑDelivers the byte-code instructions as a continuous stream.
 
    Yields `dis.Instruction`. After each code-block (`co_code`), `None` is
    yielded to mark the end of the block and to interrupt the steam.
    css|]}|jdkr|VqdS)Ú EXTENDED_ARGN)Úopname)Ú.0rErrrÚ    <genexpr>s
z'iterate_instructions.<locals>.<genexpr>N)rÚ    co_constsÚinspectÚiscodeÚiterate_instructions)Ú code_objectZconstantrrrrP…s
 
 
rP)N)r'Úfilterwarningsr rrÚrer0rNr Ú    NameErrorr Ú_compatrrrrrr"r;Úcompiler@Ú version_inforDrHrPrrrrÚ<module>s.  
 
5