| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/__pycache__/ |
Upload File : |
a
�iU � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZg d�Zd\Z Z
ZZZ
d\ZZdZdZdZdedddfd d
�Zdd� ZG d
d� d�ZG dd� de�ZG dd� dej�ZG dd� dej�Zefdd�dd�Zdd� Zdd� Zedkr�e� dS )� N)�BadGzipFile�GzipFile�open�compress�
decompress)� � � � � )r r r � � �rbc C s� d|v r d|v rPt d|f ��n0|d ur0t d��|d ur@t d��|d urPt d��|�dd�}t| tttjf�r|t| ||�}n,t| d�s�t| d �r�td ||| �}nt d
��d|v r�t
�||||�S |S d S )N�t�bzInvalid mode: %rz0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary mode� �read�writez1filename must be a str or bytes object, or a file)�
ValueError�replace�
isinstance�str�bytes�os�PathLiker �hasattr� TypeError�io�
TextIOWrapper)�filename�mode�
compresslevel�encoding�errors�newlineZgz_mode�binary_file� r&