ProShell v2.0
Dashboard
Server Info
Server: 127.0.0.80
PHP: 8.3.31
home
clients
08ce2314c3c7e396ea36e41d2a860c5e
sites
filmerletravail.org
wp-content
mu-plugins
2026-08-23 13:17:59
Editing: gzip.cpython-39.pyc
Cancel
Save Changes
a �:j,U � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZg d�Z d\Z ZZZ Zd\ZZdZdZdZd edddfd d�Zdd � ZG dd� d�ZG dd� de�ZG dd� dej�ZG dd� dej�Zefdd�dd�Zdd� Zdd� Ze dkr�e� dS )z�Functions that read and write gzipped files. The user of the file doesn't have to worry about the compression, but random access is not allowed.� N)�BadGzipFile�GzipFile�open�compress� decompress)� � � � � )r r r � � �rbc C s� d|v r d|v rPt d|f ��n0|dur0t d��|dur@t d��|durPt d��|�dd�}t| tttjf�r|t| ||�}n,t| d �s�t| d �r�td||| �}nt d��d|v r�t �||||�S |S dS )a Open a gzip-compressed file in binary or text mode. The filename argument can be an actual filename (a str or bytes object), or an existing file object to read from or write to. The mode argument can be "r", "rb", "w", "wb", "x", "xb", "a" or "ab" for binary mode, or "rt", "wt", "xt" or "at" for text mode. The default mode is "rb", and the default compresslevel is 9. For binary mode, this function is equivalent to the GzipFile constructor: GzipFile(filename, mode, compresslevel). In this case, the encoding, errors and newline arguments must not be provided. For text mode, a GzipFile object is created, and wrapped in an io.TextIOWrapper instance with the specified encoding, error handling behavior, and line ending(s). �t�bzInvalid mode: %rNz0Argument '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_modeZbinary_file� r% �/usr/lib/python3.9/gzip.pyr s$ r c C s | � t�d|�� d S )Nz<L)r �structZpack)�output�valuer% r% r&