Hacked By AnonymousFox
U
e5d�V � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZzddlZejZW n ek
r� dZejZY nX zddlZW n ek
r� dZY nX zddlZW n ek
r� dZY nX ddddddd d
ddd
ddg
ZG dd� de�ZG dd� de�Ze ZZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(e�)e'�Z*dZ+dZ,dZ-dZ.d Z/d!Z0d"Z1d#Z2dZ3d$Z4d%Z5d&Z6e�)e5�Z7dZ8dZ9dZ:dZ;d Z<d!Z=d"Z>d#Z?dZ@d$ZAd'ZBd(ZCdZDd)ZEdZFd*ZGd+ZHd,ZId-ZJd.ZKd/ZLe�)eK�ZMdZNdZOdZPdZQd ZRd!ZSd"ZTd#ZUdZVd$ZWd'ZXd(ZYd0ZZd1Z[e�)eZ�Z\d2Z]d3Z^e�)e]�Z_dZ`dZadZbdZcd Zdd!Zed"Zfd#ZgdZhd$Zid4Zje�kd5�Zld6d7� Zmd8d9� Znd:d
� Zod;d<� Zpd=d>� ZqG d?d� der�Zsdatd@dA� ZudBdC� ZvG dDdE� dE�ZwG dFdG� dG�ZxdHdIdJdJdJdJdKdLdMdNdKdOdPdQdRdSdTdU�ZydVdW� ZzdtdXdY�Z{dZd[� Z|G d\d]� d]�Z}G d^d_� d_�Z~G d`da� daej�Z�G dbdc� dcej�Z�G ddd� d�Z�G ded
� d
e��Z�dfdg� Z�dhdi� Z�e�j�Z�djdk� Z�G dldm� dme��Z�G dndo� doe��Z�G dpd� d�Z�dudqdr�Z�e�dsk�r
e�� dS )vzP
Read and write ZIP files.
XXX references to utf-8 need further investigation.
� N�
BadZipFile�
BadZipfile�error�
ZIP_STORED�ZIP_DEFLATED� ZIP_BZIP2�ZIP_LZMA�
is_zipfile�ZipInfo�ZipFile� PyZipFile�LargeZipFile�Pathc @ s e Zd ZdS )r N)�__name__�
__module__�__qualname__� r r �/usr/lib64/python3.8/zipfile.pyr + s c @ s e Zd ZdZdS )r
zu
Raised when writing a zipfile, the zipfile requires ZIP64 extensions
and those extensions are disabled.
N)r r r �__doc__r r r r r
/ s i���� � � � � �- �. �? s <4s4H2LHs PK� � � � � � � � z<4s4B4HL2L5H2Ls PK�
� �
� � � � z<4s2B4HL2L2Hs PKz<4sLQLs PKz
<4sQ2H2L4Qs PKiPK�<HHc
C s� t j}d}g }d }}|d t| �krz|| ||d � �\}}|d | } ||krt||krl|�| ||� � | }d}| }q|s�| S d�|�S )NFr r T� )�_EXTRA_FIELD_STRUCT�unpack�len�append�join)
�extraZxidsr/ Zmodified�buffer�start�iZxidZxlen�jr r r �_strip_extra� s r8 c C s, zt | �rW dS W n tk
r& Y nX dS )NTF)�_EndRecData�OSError��fpr r r �_check_zipfile� s
r= c C sV d}z8t | d�rt| d�}nt| d��}t|�}W 5 Q R X W n tk
rP Y nX |S )z�Quickly see if a file is a ZIP file by checking the magic number.
The filename argument may be a file or file-like object too.
F�readr; �rb)�hasattrr= �openr: )�filename�resultr<