관리-도구
편집 파일: aifc.cpython-37.opt-2.pyc
B YI~d.� � @ s@ d dl Z d dlZd dlZdddgZG dd� de�ZdZdd� Zd d � Zdd� Z d d� Z dd� ZdZdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d lmZ d d!lmZ ed"d#�Zd$ej_d%ej_d&ej_d'ej_d(ej_d)ej_G d*d+� d+�Z G d,d-� d-�Z!d@d.d�Z"dAd/d�Z#e$d0k�r<d dl%Z%e%j&d1d� �sJe%j&�'d2� e%j&d1 Z(e"e(d3���Z)e*d4e(� e*d5e)�+� � e*d6e)�,� � e*d7e)�-� � e*d8e)�.� � e*d9e)�/� � e*d:e)�0� � e%j&d;d� �r2e%j&d; Z1e*d<e1� e"e1d=��8Z2e2�3e)�4� � x"e)�5d>�Z6e6�sP e2�7e6� �q�W W dQ R X e*d?� W dQ R X dS )B� N�Error�open�openfpc @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �)/opt/alt/python37/lib64/python3.7/aifc.pyr � s l @Q E c C s8 yt �d| �d��d S t jk r2 td �Y nX d S )Nz>l� r )�struct�unpack�read�error�EOFError)�filer r r � _read_long� s r c C s8 yt �d| �d��d S t jk r2 td �Y nX d S )Nz>Lr r )r r r r r )r r r r �_read_ulong� s r c C s8 yt �d| �d��d S t jk r2 td �Y nX d S )Nz>h� r )r r r r r )r r r r �_read_short� s r c C s8 yt �d| �d��d S t jk r2 td �Y nX d S )Nz>Hr r )r r r r r )r r r r �_read_ushort� s r c C s@ t | �d��}|dkrd}n | �|�}|d@ dkr<| �d�}|S )N� r � )�ordr )r �length�data�dummyr r r �_read_string� s r g�����c C s� t | �}d}|dk r d}|d }t| �}t| �}|| krN| krNdkrXn nd} n0|dkrft} n"|d }|d | td |d � } || S )Nr r ���i � g i� i�? l g @�? )r r � _HUGE_VAL�pow)�f�expon�sign�himant�lomantr r r �_read_float� s "r&