| Server IP : 185.125.27.153 / Your IP : 216.73.216.193 Web Server : Apache System : Linux d6e05399ed1f11695f7c56648ed78c66 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : uid174255 ( 174255) PHP Version : 8.3.31 Disable Function : exec,passthru,pcntl_exec,popen,proc_open,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/1/root/usr/lib/python3.9/__pycache__/ |
Upload File : |
a
�:jT � @ sl d Z ddlZddlZddlZddlZg d�Zi Zdd� Zddd�Zddd �Z dd
d�Z
ddd
�Zdd� 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 C s t �� dS )zClear the cache entirely.N)�cache�clear� r r �/usr/lib/python3.9/linecache.pyr s r c C s6 t | |�}d| kr"t|�kr2n n||d 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�linesr r r r s
r c C sV | t v r(t | }t|�dkr(t | d S zt| |�W S tyP t� g Y S 0 dS )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
� N)r r
�updatecache�MemoryErrorr )r r �entryr r r r $ s r c C s� | du rt t�� �}n| tv r&| g}ndS |D ]�} t| }t|�dkrHq.|\}}}}|du r^q.zt�|�}W n" ty� t�| d� Y q.Y n0 ||jks�||j kr.t�| d� q.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 r r r r 4 s&