Server IP : 149.255.58.128 / Your IP : 216.73.216.236
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib64/python3.9/__pycache__//linecache.cpython-39.pyc
a
�DOgU � @ 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/lib64/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&