Files
952-11/env/python/dll/Python312/Lib/__pycache__/linecache.cpython-312.pyc
T

51 lines
6.3 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åfÅãó`—dZddlZddlZddlZddlZgd¢ZiZd„Zd
d„Zd
d„Z d
d„Z
d
d„Z d „Z y) zÃCache lines from Python source files.
This is intended to read lines from modules imported -- hence if a filename
is not found, it will look down the module search path for a file by
that name.
éN)ÚgetlineÚ
clearcacheÚ
checkcacheÚ lazycachecó,—tj«y)zClear the cache entirely.N)ÚcacheÚclear©óúEC:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\linecache.pyrrs €ä ‡K�K…Mr cóZ—t||«}d|cxkrt|«kr ny||dz
Sy)z~Get a line for a Python source file from the cache.
Update the cache if it doesn't contain an entry for this file already.éÚ)ÚgetlinesÚlen)ÚfilenameÚlinenoÚmodule_globalsÚliness r rrs8€ô
�X˜~Ó .€E؈FÔ ”c˜%“jÔ à
ð�V˜a‘ZÑ Ð Ø
r có¨—|tvr#t|}t|«dk7r t|dS t||«S#t$rt «gcYSwxYw)z�Get the lines for a Python source file from the cache.
Update the cache if it doesn't contain an entry for this file already.ré)rrÚ updatecacheÚ MemoryErrorr)rrÚentrys r rr$sZ€ð”5ÑÜ�h‘ˆÜ ˆu‹:˜Š?ܘ‘? 1Ñ%Ð %ðܘ8 ^Ó4Ð4øÜ òÜŒ ØŠ ðús­ 9¹AÁAcó�—|€ttj««}n
|tvr|g}ny|D]o}t|}t|«dk(rŒ|\}}}}|€Œ% t j
|«}||jk7s||jk7sŒZtj|d«Œqy#t $rtj|d«YŒ”wxYw)zUDiscard cache entries that are out of date.
(This is not checked upon each call!)Nr)
ÚlistrÚkeysrÚosÚstatÚOSErrorÚpopÚst_sizeÚst_mtime)rÚ filenamesrÚsizeÚmtimerÚfullnamers r rr4sÄ€ðÐÜœŸ™›Ó&‰ Ø ”UÑ Ø�J‰ ààò&ˆÜ�h‘ˆÜ ˆu‹:˜Š?à Ø',Ñ$ˆˆe�U˜HØ ˆ=Ø ð Ü—7‘7˜8Ó$ˆDð �4—<‘<Ò  5¨D¯M©MÓ#9Ü �I‰I�h Õ %ñ&øôò Ü �I‰I�h Ô %Ù ð úsÁB#Â#CÃCcó‚—|tvr+tt|«dk7rtj|d«|r"|jd«r|j d«rgS|} t j |«} t#j$|«5}|j'«} ddd« r!| dj d«s
| dxxdz
cc<|j,|j.} }
|
| | |ft|<| S#t$�r |}t||«ru t|d«}|€gcYSt|«d|j«D�cgc]}|dz‘Œ ncc}wc}|ft|<t|dcYS#ttf$rYnwxYwt
jj|«rgcYStjD]_} t
jj||«}n#tt f$rYŒ6wxYw t j |«}n#t$rYŒ]wxYwgcYSY�Œ¢wxYw#1swY�Œ�xYw#tt(t*f$rgcYSwxYw) z”Update a cache entry and return its list of lines.
If something's wrong, print a message, discard the cache entry,
and return an empty list.rNú<ú>rú
réÿÿÿÿ)rrr!Ú
startswithÚendswithrrr rÚ
splitlinesÚ ImportErrorÚpathÚisabsÚsysÚjoinÚ TypeErrorÚAttributeErrorÚtokenizeÚopenÚ readlinesÚUnicodeDecodeErrorÚ SyntaxErrorr"r#) rrr'rÚbasenameÚdataÚlineÚdirnameÚfprr%r&s r rrPs5€ð
”5ÑÜ Œu�X‰Ó  1Ò $Ü �I‰I�h Ô %Ù ˜×+Ñ+¨CÔ0°X×5FÑ5FÀsÔ5K؈ à€Hð*Ü�w‰w�xÓ ˆðTÜ
�]‰]˜8Ó
$ð #¨Ø—L‘L“NˆE÷ #ñ
�U˜2‘Y×'Ñ'¨Ô-Ø
ˆb‹ �TÑ‹ Ø—,‘, §
¡
ˆ%€DؘE 5¨(Ð2„Eˆ(�OØ €Løôe ó(؈ô �X˜~Ô .ð
*ܘX‘ qÑ)Ó+�ð�<ð’I䘓IØØ-1¯_©_Ó->Ö? T�T˜D“[Ñ?ùÔ?Øð #”�h‘ô ˜X‘ qÑ)Ò)øô ¤Ð)ò
Ùð
úô" �7‰7�=‰=˜Ô "ØŠIä—x‘xò ˆGð
ÜŸ7™7Ÿ<™<¨°Ó:‘øÜœ~Ð.ò
áð
úð
Ü—w‘w˜xÓ(�ÙøÜò
Ùð
úð ðŠIò ðI(ú÷T #ñ #ûä Ô'¬Ð 5òØŠ ðúsÀÁC+Á3H%ÂHÂH%Ã+HÄE#ÄHÄHÄ7 E