File: //opt/alt/python313/lib64/python3.13/__pycache__/linecache.cpython-313.opt-1.pyc
�
5:�i@ � �j � S r / SQr0 r0 rS rSS jrSS jrS rS rS r SS jr
SS
jrS rS r
S
rg)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.
)�getline�
clearcache�
checkcache� lazycachec �, � [ R 5 g)zClear the cache entirely.N)�cache�clear� � �0/opt/alt/python313/lib64/python3.13/linecache.pyr r s � � �K�K�Mr
Nc �Z � [ X5 nSUs=:: a [ U5 :: a
O gX1S-
$ g)zzGet 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 r r s4 � �
�X�.�E��F� �c�%�j� �
� �a�Z� � �
r
c � � [ R U S5 nUb [ U5 S:w a US $ [ X5 $ ! [ a [ 5 / s $ f = f)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.Nr
� )r �getr �updatecache�MemoryErrorr )r r �entrys r r r sV � �
�I�I�h��%�E���S��Z�1�_��Q�x����8�4�4��� ���� ��s �
: �A�Ac �Z � [ U 5 nSUs=:: a [ U5 :: a
O gX!S-
$ g)Nr
r )�_getlines_from_coder )r r r s r �_getline_from_coder / s2 � ���)�E��F� �c�%�j� �
� �a�Z� � �
r
c �H � U R U R U R 4$ �N)�co_filename�co_qualname�co_firstlineno)�codes r � _make_keyr$ 5 s! � ����d�.�.��0C�0C�D�Dr
c �v � [ U 5 n[ R US 5 nUb [ U5 S:w a US $ / $ )Nr
r )r$ �_interactive_cacher r )r# �code_idr s r r r 8 s; � ���o�G��"�"�7�D�1�E���S��Z�1�_��Q�x��
�Ir
c �� � U c# [ R 5 R 5 nOU /nU H� n [ R U S5 nUb [ U5 S:X a M- Uu p4pVUc M7 SSKn UR U5 nX8R :w d XHR :w d Mn [ R U S5 M� g! [ a gf = f! [ [ 4 a [ R U S5 M� f = f)zQDiscard cache entries that are out of date.
(This is not checked upon each call!)Nr
� )
r �copy�keysr r �os�ImportError�stat�OSError�
ValueError�pop�st_size�st_mtime) r � filenamesr �size�mtimer �fullnamer, r. s r r r @ s� � � ���J�J�L�%�%�'� ��J� ���� � �(�D�)���=�C��J�!�O��',�$��U��=�� �� ��7�7�8�$�D� �<�<��5�M�M�#9��I�I�h��%�'