File: //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/cgi.cpython-311.opt-2.pyc
�
    !A?h��  �                   �  � 	 d Z ddlmZmZmZ ddlmZ ddlZddlZddl	Z
ddlmZ ddl
mZ ddlZddlZddlZddlZg d�Z ej        ed�	�  �         d
adad� Zd� Zd
� Zd� Zeadadej        dddfd�Zd#d�Z d� Z!d� Z" G d� d�  �        Z# G d� d�  �        Z$ej        fd�Z%d$d�Z&ej        fd�Z'd� Z(d� Z)d� Z*d � Z+d!� Z,ed"k    r e%�   �          dS dS )%z2.6�    )�StringIO�BytesIO�
TextIOWrapper)�MappingN)�
FeedParser)�Message)�MiniFieldStorage�FieldStorage�parse�parse_multipart�parse_header�test�print_exception�
print_environ�
print_form�print_directory�print_arguments�print_environ_usage)�   �
   )�remove� c                  ��   � 	 t          j        dt          d��  �         t          r0t          s)	 t          t          dd��  �        an# t          $ r Y nw xY wt          st          ant          at          | �  d S )Nz7cgi.log() is deprecated as of 3.10. Use logging instead�   )�
stacklevel�a�locale)�encoding)
�warnings�warn�DeprecationWarning�logfile�logfp�open�OSError�nolog�log�dolog��allargss    �*/opt/alt/python311/lib64/python3.11/cgi.py�initlogr,   A   s�   � ��. 
�M�K�$��4� 4� 4� 4�� �u� �	���#��9�9�9�E�E��� 	� 	� 	��D�	����� ��������M�M�M�Ms   �A �
A�Ac                 �H   � 	 t           �                    | |z  dz   �  �         d S )N�
)r#   �write)�fmt�argss     r+   r(   r(   f   s%   � �G�	�K�K��D��4�� � � � � �    c                  �   � 	 d S �N� r)   s    r+   r&