Your IP : 18.222.98.91
o
6��f�9 � @ s
d Z ddlZddlZddlZddlZddlZddlZejdedd� g d�Z G dd� de
�ZdZd Z
d
ZdZdZG d
d� d�Zdd� ZG dd� d�Zejdd� �ZG dd� d�ZG dd� d�ZG dd� d�Zdd� ZG dd� d�ZG dd � d �ZG d!d"� d"�Zd#d$� ZdS )%z�Macintosh binhex compression/decompression.
easy interface:
binhex(inputfilename, outputfilename)
hexbin(inputfilename, outputfilename)
� Nzthe binhex module is deprecated� )�
stacklevel)�binhex�hexbin�Errorc @ s e Zd ZdS )r N)�__name__�
__module__�__qualname__� r
r
�-/opt/alt/python310/lib64/python3.10/binhex.pyr % s r � i � �@ � �c @ s e Zd Zdd� ZdS )�FInfoc C s d| _ d| _d| _d S )Nz????r )�Type�Creator�Flags��selfr
r
r �__init__6 s
zFInfo.__init__N)r r r r r
r
r
r r 5 s r c C s� t � }t�| d��}|�d�}d|vrd|_|�dd� |�� }W d � n1 s*w Y tj� | �\}}|�
ddd�}|||dfS ) N�rbi r ZTEXTr �:�-r )r �io�open�readr �seek�tell�os�path�split�replace)�name�finfo�fp�dataZdsize�dir�filer
r
r �getfileinfo; s
�r( c @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S )
�openrsrcc G � d S �Nr
�r �argsr
r
r r I � zopenrsrc.__init__c G s dS �N� r
r, r
r
r r L r. z
openrsrc.readc G r* r+ r
r, r
r
r �writeO r. zopenrsrc.writec C r* r+ r
r r
r
r �closeR r. zopenrsrc.closeN)r r r r r r1 r2 r
r
r
r r) H s
r) c c sD � t �� � t �ddt� d V W d � d S 1 sw Y d S )N�ignore� )�warnings�catch_warnings�filterwarnings�DeprecationWarningr
r
r
r �_ignore_deprecation_warningX s
�
"�r9 c @ �0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�_Hqxcoderenginez(Write data to the coder in 3-byte chunksc C s || _ d| _d| _td | _d S )Nr0 r )�ofpr% �hqxdata�LINELEN�linelen�r r<