o
p̦i9 @ s
d Z ddlZddlZddlZddlZddlZddlZejdedd g dZ G dd de
ZdZd Z
d
ZdZdZG d
d dZdd ZG dd dZejdd ZG dd dZG dd dZG dd dZdd ZG dd dZG dd d ZG d!d" d"Zd#d$ ZdS )%zMacintosh binhex compression/decompression.
easy interface:
binhex(inputfilename, outputfilename)
hexbin(inputfilename, outputfilename)
Nzthe binhex module is deprecated )
stacklevel)binhexhexbinErrorc @ s e Zd ZdS )r N)__name__
__module____qualname__ r
r
/usr/lib/python3.10/binhex.pyr % s r i @ c @ s e Zd Zdd ZdS )FInfoc C s d| _ d| _d| _d S )Nz????r )TypeCreatorFlagsselfr
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 ) Nrbi r TEXTr :-r )r ioopenreadr seektellospathsplitreplace)namefinfofpdatadsizedirfiler
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 r0 z
openrsrc.readc G r, r- r
r. r
r
r writeO r0 zopenrsrc.writec C r, r- r
r r
r
r closeR r0 zopenrsrc.closeN)r r r r r r3 r4 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 )Nignore )warningscatch_warningsfilterwarningsDeprecationWarningr
r
r
r _ignore_deprecation_warningX s
"r; 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 )Nr2 r )ofpr&