AlkantarClanX12
Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/gzip.cpython-312.opt-2.pyc |
� �Q�fa � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZg d�Zd\ Z Z ZZZ d\ ZZdZdZdZdZd ej( z Zd edddfd�Zd� Z G d � d� Z G d� de� Z G d� dej6 � Z G d� dej: � Zd� Zd� Z G d� dejB � Z" d!de#de$fd�Z%efdd�d�Z&d� Z'd� Z(e)d k( r e(� yy)"� N)�BadGzipFile�GzipFile�open�compress� decompress)� � � � � )r r r � � i r �rbc �� � d|v rd|v r5t d|��� �|�t d� �|�t d� �|�t d� �|j dd� }t | t t t j f� rt | ||� }n2t | d� st | d � rt d ||| � }nt d � �d|v r-t j |� }t j ||||� S |S )N�t�bzInvalid mode: z0Argument '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� text_encoding� TextIOWrapper)�filename�mode� compresslevel�encoding�errors�newline�gz_mode�binary_files �+/opt/alt/python312/lib64/python3.12/gzip.pyr r s� � ��$ �d�{��$�;��4�9�:�:����O�P�P����M�N�N����N�O�O��l�l�3��#�G��(�S�%����5�6��x��-�@�� ��6� "�g�h��&@��t�W�m�X�F���K�L�L� �d�{��#�#�H�-������X�v�w�G�G��� c �N � | j t j d|� � y )Nz<L)r �struct�pack)�output�values r* �write32ur1 I s � � �L�L����T�5�)�*r+ c �0 � e Zd Z dd�Zd� Zdd�Zd� Zd� Zy)�_PaddedFilec �N � || _ t |� | _ || _ d| _ y �Nr )�_buffer�len�_length�file�_read)�self�f�prepends r* �__init__z_PaddedFile.__init__S s"