Hacked By AnonymousFox
�
c��f�� � � � d Z dZddlmZmZmZ ddlmZ ddlZddl Z ddl
Zddlm
Z
ddlmZ ddlZddlZddlZddlZg d�Z ej ed �
� � dadad� Zd
� Zd� Zd� Zeadade j dddfd�Z d$d�Z!d� Z"d� Z# G d� d� � Z$ G d� d� � Z%e j fd�Z&d%d�Z'e j fd�Z(d� Z)d� Z*d � Z+d!� Z,d"� Z-ed#k r e&� � dS dS )&a� Support module for CGI (Common Gateway Interface) scripts.
This module defines a number of utilities for use by CGI scripts
written in Python.
The global variable maxlen can be set to an integer indicating the maximum size
of a POST request. POST requests larger than this size will result in a
ValueError being raised during parsing. The default value of this variable is 0,
meaning the request size is unlimited.
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 | � dS )a� Write a log message, if there is a log file.
Even though this function is called initlog(), you should always
use log(); log is a variable that is set either to initlog
(initially), to dolog (once the log file has been opened), or to
nolog (when logging is disabled).
The first argument is a format string; the remaining arguments (if
any) are arguments to the % operator, so e.g.
log("%s: %s", "a", "b")
will write "a: b" to the log file, followed by a newline.
If the global logfp is not None, it should be a file object to
which log data is written.
If the global logfp is None, the global logfile may be a string
giving a filename to open, in append mode. This file should be
world writable!!! If the file can't be opened, logging is
silently disabled (since there is no safe place where we could
send an error message).
z7cgi.log() is deprecated as of 3.10. Use logging instead� )�
stacklevel�a�locale)�encodingN)
�warnings�warn�DeprecationWarning�logfile�logfp�open�OSError�nolog�log�dolog��allargss �*/opt/alt/python311/lib64/python3.11/cgi.py�initlogr, A s� � �0
�M�K�$��4� 4� 4� 4�� �u� � ���#��9�9�9�E�E��� � � ��D� ����� ��������M�M�M�Ms �A �
A�Ac �F � t � | |z dz � � dS )z=Write a log message to the log file. See initlog() for docs.�
N)r# �write)�fmt�argss r+ r( r( f s"