$57 GRAYBYTE WORDPRESS FILE MANAGER $75

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python-internal/lib64/python3.11/wsgiref/__pycache__/

HOME
Current File : /opt/alt/python-internal/lib64/python3.11/wsgiref/__pycache__//util.cpython-311.opt-1.pyc
�

!A?h`��l�dZddlZgd�ZGd�d��Zd�Zd�Zdd	�Zd
�Zd�Zhd�j	Z
d
�ZdS)z$Miscellaneous WSGI-related Utilities�N)�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc�&�eZdZdZdd�Zd�Zd�ZdS)rz1Wrapper to convert file-like objects to iterables� c�^�||_||_t|d��r|j|_dSdS)N�close)�filelike�blksize�hasattrr)�selfr
rs   �9/opt/alt/python-internal/lib64/python3.11/wsgiref/util.py�__init__zFileWrapper.__init__s9�� ��
�����8�G�$�$�	(�!��D�J�J�J�	(�	(�c��|S�N�)rs r�__iter__zFileWrapper.__iter__s���rc�V�|j�|j��}|r|St�r)r
�readr�
StopIteration)r�datas  r�__next__zFileWrapper.__next__s,���}�!�!�$�,�/�/���	��K��rN)r
)�__name__�
__module__�__qualname__�__doc__rrrrrrrrsL������;�;�(�(�(�(��������rrc�8�|�d��dvrdSdS)zMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
    �HTTPS)�yes�on�1�https�http)�get)�environs rrrs&���{�{�7���/�/�/��w��vrc�L�|ddz}ddlm}|�d��r||dz
}nL||dz
}|ddkr|dd	kr|d
|dzz
}n|ddkr|d
|dzz
}|||�d��pd
d���z
}|S)z@Return the application's base URI (no PATH_INFO or QUERY_STRING)�wsgi.url_schemez://r��quote�	HTTP_HOST�SERVER_NAMEr&�SERVER_PORT�443�:�80�SCRIPT_NAME�/�latin1)�encoding)�urllib.parser-r()r)�urlr-s   rrr%s���
�#�
$�U�
*�C�"�"�"�"�"�"��{�{�;���
4��w�{�#�#����w�}�%�%���$�%��0�0��}�%��.�.��s�W�]�3�3�3����}�%��-�-��s�W�]�3�3�3���5�5����]�+�+�2�s�X�F�F�F�F�C��JrTc��t|��}ddlm}||�dd��dd���}|�d��s||d	d
�z
}n||z
}|r#|�d��r|d|dzz
}|S)
zBReturn the full request URI, optionally including the query stringrr,�	PATH_INFO�z/;=,r6)�safer7r4�N�QUERY_STRING�?)rr8r-r()r)�
include_queryr9r-�	path_infos     rrr9s���
�'�
"�
"�C�"�"�"�"�"�"���g�k�k�+�b�1�1���R�R�R�I��;�;�}�%�%���y����}�����y����-����^�4�4�-��s�W�^�,�,�,���Jrc���|�dd��}|sdS|�d��}d�|dd�D��|dd�<|d}|d=|�dd��}tj|dz|z��}|�d��r
|dd�}|s|�d��s|dz
}||d<d�|��|d<|d	krd}|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.
    r;r<Nr5c�"�g|]}|�|dk�
|��
S)�.r)�.0�ps  r�
<listcomp>z#shift_path_info.<locals>.<listcomp>Xs"��F�F�F�a�q�F�Q�#�X�X��X�X�Xrr>���r4rE)r(�split�	posixpath�normpath�endswith�join)r)rB�
path_parts�name�script_names     rrrFs�����K��+�+�I����t�����%�%�J�F�F�:�a��d�#3�F�F�F�J�q��t���a�=�D��1�
��+�+�m�B�/�/�K��$�[��_�T�%9�:�:�K����C� � �'�!�#�2�#�&�����,�,�S�1�1���s���(�G�M�� �X�X�j�1�1�G�K���S�y�y����Krc�8�|�dd��|�dd��|�d|d��|�dd��d|vr0d	|vr,|�dd
��|�d	d��|�dd
��|�dd��|�dd��|�dd��ddlm}m}|�d|����|�d|����|�dt	|����|ddkr|�dd��dS|ddkr|�dd��dSdS)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.1�SERVER_PROTOCOLzHTTP/1.0r.�REQUEST_METHOD�GETr4r;r<r5zwsgi.version)r>rz
wsgi.run_oncerzwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz
wsgi.inputzwsgi.errorsr+r'r0r3r&r1N)�
setdefault�iorVrWr)r)rVrWs   rrros������}�[�1�1�1����(��4�4�4����{�7�=�#9�:�:�:����'��.�.�.��G�#�#��7�(B�(B����=��,�,�,����;�s�+�+�+����~�u�-�-�-������*�*�*����)�1�-�-�-����*�A�.�.�.�$�$�$�$�$�$�$�$����|�W�W�Y�Y�/�/�/����}�h�h�j�j�1�1�1����(��g�)>�)>�?�?�?�� �!�6�)�)����=�$�/�/�/�/�/�	�"�	#�W�	,�	,����=�%�0�0�0�0�0�
-�	,r>�
keep-alive�transfer-encoding�proxy-authenticate�proxy-authorization�te�upgrade�trailers�
connectionc�D�t|�����S)z?Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header)�_hoppish�lower)�header_names r�
is_hop_by_hoprf�s���K�%�%�'�'�(�(�(r)T)r rK�__all__rrrrrr�__contains__rcrfrrr�<module>ris���*�*�����������������$������(����'�'�'�R$1�$1�$1�P����		�)�)�)�)�)r


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
5 Aug 2025 8.07 AM
root / linksafe
0755
__init__.cpython-311.opt-1.pyc
0.825 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
__init__.cpython-311.opt-2.pyc
0.166 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
__init__.cpython-311.pyc
0.825 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
handlers.cpython-311.opt-1.pyc
23.715 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
handlers.cpython-311.opt-2.pyc
18.586 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
handlers.cpython-311.pyc
24.641 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
headers.cpython-311.opt-1.pyc
10.66 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
headers.cpython-311.opt-2.pyc
7.597 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
headers.cpython-311.pyc
10.825 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
simple_server.cpython-311.opt-1.pyc
8.749 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
simple_server.cpython-311.opt-2.pyc
8.008 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
simple_server.cpython-311.pyc
8.749 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
types.cpython-311.opt-1.pyc
4.213 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
types.cpython-311.opt-2.pyc
3.939 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
types.cpython-311.pyc
4.213 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
util.cpython-311.opt-1.pyc
7.687 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
util.cpython-311.opt-2.pyc
6.188 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
util.cpython-311.pyc
7.687 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
validate.cpython-311.opt-1.pyc
22.541 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
validate.cpython-311.opt-2.pyc
18.988 KB
23 Jul 2025 10.03 AM
root / linksafe
0644
validate.cpython-311.pyc
22.541 KB
23 Jul 2025 10.03 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF