ok
Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/linecache.cpython-311.pyc |
� �f � �b � d Z ddlZddlZddlZddlZg d�Zi Zd� Zd d�Zd d�Z d d�Z d d�Zd � ZdS )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 �8 � t � � � dS )zClear the cache entirely.N)�cache�clear� � �0/opt/alt/python311/lib64/python3.11/linecache.pyr r s � � �K�K�M�M�M�M�Mr c �v � t | |� � }d|cxk rt |� � k rn n||dz S dS )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 r r sO � � �X�~�.�.�E��F� � � � �c�%�j�j� � � � � ��V�a�Z� � � �2r c �� � | t v r3t | }t |� � dk rt | d S t | |� � S # t $ r t � � g cY S w xY w)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 � )r r �updatecache�MemoryErrorr )r r �entrys r r r $ sx � � �5����h����u�:�:��?�?���?�1�%�%���8�^�4�4�4��� � � ������ � � ����s �A �A+�*A+c � � | �'t t � � � � � }n| t v r| g}ndS |D ]�} t | }t |� � dk r�#|\ }}}}|��- t j |� � }n+# t $ r t � | d� � Y �jw xY w||j k s||j k rt � | d� � ��dS )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 �fullnamer s r r r 4 s� � � ��������&�&� � � �U� � ��J� � ���� &� &���h����u�:�:��?�?��',�$��e�U�H��=�� ��7�8�$�$�D�D��� � � ��I�I�h��%�%�%��H� ���� �4�<���5�D�M�#9�#9��I�I�h��%�%�%��&� &s �)A>�>%B&�%B&c �� � | t v r9t t | � � dk rt � | d� � | r*| � d� � r| � d� � rg S | } t j |� � }�n<# t $ �r. | }t | |� � r� t | d � � }|�g cY S t |� � dd� |� � � D � � |ft | <