Hacked By AnonymousFox
�
�Q�fn � �N � d dl Z e j d� Zdd�Z G d� d� Zy)� Nz[ \(\)<>@,;:\\"/\[\]\?=]c � � |�Vt |� dkD rH|st j |� r*|j dd� j dd� }| �d|�d�S | �d|��S | S )Nr �\z\\�"z\"z="�=)�len� tspecials�search�replace)�param�value�quotes �6/opt/alt/python312/lib64/python3.12/wsgiref/headers.py�_formatparamr
sa � ��
��S��Z�!�^��I�$�$�U�+��M�M�$��/�7�7��U�C�E� %�u�-�-�#�U�+�+��� c �x � e Zd Z dd�Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z
dd
�Zd� Zd� Z
d
� Zd� Zd� Zd� Zd� Zd� Zy)�HeadersNc �V � |�|ng }t |� t urt d� �|| _ y )Nz+Headers must be a list of name/value tuples)�type�list� TypeError�_headers�_convert_string_type)�self�headers�k�vs r �__init__zHeaders.__init__ s0 � �$�0�'�b����=��$��I�J�J���
�r c �p � t |� t u r|S t dj t |� � � �)Nz1Header names/values must be of type str (got {0}))r �str�AssertionError�format�repr)r r s r r zHeaders._convert_string_type) s6 � �'���;�#���L�� %�%+�V�D��K�%8�:� :r c �. � t | j � S �N)r r �r s r �__len__zHeaders.__len__0 s � �G��4�=�=�!�!r c � � | |= | j j | j |� | j |� f� y r$ )r �appendr )r �name�vals r �__setitem__zHeaders.__setitem__4 s= � �(���J��
�
���
�
&�
&�t�
,�d�.G�.G��.L�M� Or c �� � | j |j � � }| j D �cg c] }|d j � |k7 s�|�� c}| j d d y c c}w )Nr �r �lowerr �r r) �kvs r �__delitem__zHeaders.__delitem__: sT � � � �(�(�����6��)-���P��2�"�Q�%�+�+�-�4�:O�B��P��
�
�a���Ps �A �A c �&