SILENT KILLERPanel

Current Path: > > opt > alt > python34 > lib64 > python3.4 > wsgiref > __pycache__


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python34/lib64/python3.4/wsgiref/__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-34.pyc File 733 bytes April 17 2024 17:10:10.
__init__.cpython-34.pyo File 733 bytes April 17 2024 17:10:10.
handlers.cpython-34.pyc File 16962 bytes April 17 2024 17:10:10.
handlers.cpython-34.pyo File 16462 bytes April 17 2024 17:10:06.
headers.cpython-34.pyc File 8107 bytes April 17 2024 17:10:10.
headers.cpython-34.pyo File 8039 bytes April 17 2024 17:10:06.
simple_server.cpython-34.pyc File 5661 bytes April 17 2024 17:10:10.
simple_server.cpython-34.pyo File 5661 bytes April 17 2024 17:10:10.
util.cpython-34.pyc File 5627 bytes April 17 2024 17:10:10.
util.cpython-34.pyo File 5627 bytes April 17 2024 17:10:10.
validate.cpython-34.pyc File 15688 bytes April 17 2024 17:10:10.
validate.cpython-34.pyo File 15688 bytes April 17 2024 17:10:10.

Reading File: //opt/alt/python34/lib64/python3.4/wsgiref/__pycache__/util.cpython-34.pyc

�
i f�@s�dZddlZddddddgZGd	d�d�Zd
d�Zdd�Zdd
d�Zdd�Zdd�Zidd6dd6dd6dd6dd6dd6dd6dd6j	Z
dd�ZdS)z$Miscellaneous WSGI-related Utilities�N�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc@sIeZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)rz1Wrapper to convert file-like objects to iterablesi cCs4||_||_t|d�r0|j|_ndS)N�close)�filelike�blksize�hasattrr)�selfr	r
�r
�1/opt/alt/python34/lib64/python3.4/wsgiref/util.py�__init__s		zFileWrapper.__init__cCs)|jj|j�}|r|St�dS)N)r	�readr
�
IndexError)r�key�datar
r
r�__getitem__szFileWrapper.__getitem__cCs|S)Nr
)rr
r
r�__iter__szFileWrapper.__iter__cCs)|jj|j�}|r|St�dS)N)r	rr
�
StopIteration)rrr
r
r�__next__szFileWrapper.__next__N)�__name__�
__module__�__qualname__�__doc__rrrrr
r
r
rrs
cCs!|jd�dkrdSdSdS)	zMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
    ZHTTPS�yes�on�1�https�httpN)zyesrr)�get)�environr
r
rr#scCs�|dd}ddlm}|jd�r>||d7}nk||d7}|ddkr�|dd	kr�|d
|d7}q�n%|ddkr�|d
|d7}n|||jd�p�d
dd�7}|S)z@Return the application's base URI (no PATH_INFO or QUERY_STRING)zwsgi.url_schemez://r)�quote�	HTTP_HOST�SERVER_NAMEr�SERVER_PORT�443�:�80�SCRIPT_NAME�/�encoding�latin1)�urllib.parser#r!)r"�urlr#r
r
rr+s%TcCs�t|�}ddlm}||jdd�dddd�}|jd	�sf||d
d�7}n
||7}|r�|jd�r�|d
|d7}n|S)zBReturn the full request URI, optionally including the query stringr)r#�	PATH_INFO�Zsafez/;=,r,r-r*�NZQUERY_STRING�?)rr.r#r!)r"Z
include_queryr/r#�	path_infor
r
rr?s$
cCs|jdd�}|sdS|jd�}dd�|dd
�D�|dd�<|d}|d=|jdd�}tj|d|�}|jd�r�|dd�}n|r�|jd�r�|d7}n||d<dj|�|d<|d	krd}n|S)
aZShift a name from PATH_INFO to SCRIPT_NAME, returning it

    If there are no remaining path segments in PATH_INFO, return None.
    Note: 'environ' is modified in-place; use a copy if you need to keep
    the original PATH_INFO or SCRIPT_NAME.

    Note: when PATH_INFO is just a '/', this returns '' and appends a trailing
    '/' to SCRIPT_NAME, even though empty path segments are normally ignored,
    and SCRIPT_NAME doesn't normally end in a '/'.  This is intentional
    behavior, to ensure that an application can tell the difference between
    '/x' and '/x/' when traversing to objects.
    r0r1Nr+cSs(g|]}|r|dkr|�qS)�.r
)�.0�pr
r
r�
<listcomp>^s	z#shift_path_info.<locals>.<listcomp>r2r*r5���r9r9)r!�split�	posixpath�normpath�endswith�join)r"r4�
path_parts�nameZscript_namer
r
rrLs$
'


	cCs[|jdd�|jdd�|jd|d�|jdd�d|krd	|kr|jdd
�|jd	d�n|jdd�|jdd�|jdd�|jdd�ddlm}m}|jd|��|jd|��|jdt|��|ddkr4|jdd�n#|ddkrW|jdd�ndS)a:Update 'environ' with trivial defaults for testing purposes

    This adds various parameters required for WSGI, including HTTP_HOST,
    SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO,
    and all of the wsgi.* variables.  It only supplies default values,
    and does not replace any existing settings for these variables.

    This routine is intended to make it easier for unit tests of WSGI
    servers and applications to set up dummy environments.  It should *not*
    be used by actual WSGI servers or applications, since the data is fake!
    r%z	127.0.0.1ZSERVER_PROTOCOLzHTTP/1.0r$ZREQUEST_METHODZGETr*r0r1r+zwsgi.versionr2rz
wsgi.run_oncezwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz
wsgi.inputzwsgi.errorszwsgi.url_schemer r&r)rr'N)r2r)�
setdefault�iorArBr)r"rArBr
r
rrus&
r2Z
connectionz
keep-alivezproxy-authenticatezproxy-authorizationZteZtrailersztransfer-encodingZupgradecCst|j��S)z?Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header)�_hoppish�lower)Zheader_namer
r
r�
is_hop_by_hop�srG)rr;�__all__rrrrrr�__contains__rErGr
r
r
r�<module>s
)(


SILENT KILLER Tool