AlkantarClanX12
Current Path : /opt/alt/python37/lib64/python3.7/encodings/__pycache__/ |
Current File : //opt/alt/python37/lib64/python3.7/encodings/__pycache__/charmap.cpython-37.pyc |
B � f$ � @ sv d Z ddlZG dd� dej�ZG dd� dej�ZG dd� dej�ZG d d � d eej�ZG dd� deej�Zd d� ZdS )a Generic Python Character Mapping Codec. Use this codec directly rather than through the automatic conversion mechanisms supplied by unicode() and .encode(). Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. � Nc @ s e Zd ZejZejZdS )�CodecN)�__name__� __module__�__qualname__�codecs�charmap_encode�encode�charmap_decode�decode� r r �6/opt/alt/python37/lib64/python3.7/encodings/charmap.pyr s r c @ s e Zd Zddd�Zd dd�ZdS ) �IncrementalEncoder�strictNc C s t j�| |� || _d S )N)r r �__init__�mapping)�self�errorsr r r r r s zIncrementalEncoder.__init__Fc C s t �|| j| j�d S )Nr )r r r r )r �input�finalr r r r s zIncrementalEncoder.encode)r N)F)r r r r r r r r r r s r c @ s e Zd Zddd�Zd dd�ZdS ) �IncrementalDecoderr Nc C s t j�| |� || _d S )N)r r r r )r r r r r r r ! s zIncrementalDecoder.__init__Fc C s t �|| j| j�d S )Nr )r r r r )r r r r r r r % s zIncrementalDecoder.decode)r N)F)r r r r r r r r r r s r c @ s e Zd Zddd�Zddd�ZdS ) �StreamWriterr Nc C s t j�| ||� || _d S )N)r r r r )r �streamr r r r r r * s zStreamWriter.__init__c C s t �||| j�S )N)r r r )r r r r r r r . s zStreamWriter.encode)r N)r )r r r r r r r r r r ( s r c @ s e Zd Zddd�Zddd�ZdS ) �StreamReaderr Nc C s t j�| ||� || _d S )N)r r r r )r r r r r r r r 3 s zStreamReader.__init__c C s t �||| j�S )N)r r r )r r r r r r r 7 s zStreamReader.decode)r N)r )r r r r r r r r r r 1 s r c C s t jdtjtjttttd�S )N�charmap)�namer r �incrementalencoder�incrementaldecoder�streamwriter�streamreader) r � CodecInfor r r r r r r r r r r �getregentry<