| Server IP : 65.1.209.187 / Your IP : 216.73.216.144 Web Server : nginx/1.24.0 System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64 User : ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/web/__pycache__/ |
Upload File : |
�
oj� � �H � d Z ddlZddlZddlmZ ddlmZ ddlmZm Z ddl
mZ ddlm
Z
mZmZmZmZ dZ G d � d
e� Z G d� d� Z ej, d
de� Zd� Zd� Z G d� dej4 � Z G d� dej4 � Z G d� dej4 � Zy)zH
I contain PythonScript, which is a very simple python script resource.
� N)�StringIO)� copyright)�execfile�
networkString)�_coerceToFilesystemEncoding)�http�resource�server�static�utilz�<p>You forgot to assign to the variable "resource" in your script. For example:</p>
<pre>
# MyCoolWebApp.rpy
import mygreatresource
resource = mygreatresource.MyGreatResource()
</pre>
c � � e Zd ZdZy)�
AlreadyCachedzG
This exception is raised when a path has already been cached.
N)�__name__�
__module__�__qualname__�__doc__� � �4/usr/lib/python3/dist-packages/twisted/web/script.pyr r s � �r r c � � e Zd Zd� Zd� Zd� Zy)�CacheScannerc �. � || _ || _ d| _ y )Nr )�path�registry�doCache��selfr r s r �__init__zCacheScanner.__init__% s � ��� � ��
���r c � � | j j | j � }|�t |� �| j � y �N)r �
getCachedPathr r �recache)r �cs r �cachezCacheScanner.cache* s3 � ��M�M�'�'�� � �2���=���"�"����r c � � d| _ y )N� )r )r s r r"