Server IP : 85.193.89.191 / Your IP : 18.227.102.20 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/978/cwd/usr/lib64/python3.6/encodings/__pycache__/ |
Upload File : |
3 \� � @ s� d Z ddlZddlZddd�Zddd�ZG dd � d ej�ZG d d� dej�ZG dd � d ej�ZG dd� deej�ZG dd� deej �Z dd� Z dS )z�Python 'hex_codec' Codec - 2-digit hex content transfer encoding. This codec de/encodes from bytes to bytes. Written by Marc-Andre Lemburg (mal@lemburg.com). � N�strictc C s |dkst �tj| �t| �fS )Nr )�AssertionError�binascii�b2a_hex�len)�input�errors� r �!/usr/lib64/python3.6/hex_codec.py� hex_encode s r c C s |dkst �tj| �t| �fS )Nr )r r �a2b_hexr )r r r r r � hex_decode s r c @ s e Zd Zddd�Zddd�ZdS ) �Codecr c C s t ||�S )N)r )�selfr r r r r �encode s zCodec.encodec C s t ||�S )N)r )r r r r r r �decode s zCodec.decodeN)r )r )�__name__� __module__�__qualname__r r r r r r r s r c @ s e Zd Zddd�ZdS )�IncrementalEncoderFc C s | j dkst�tj|�S )Nr )r r r r )r r �finalr r r r s zIncrementalEncoder.encodeN)F)r r r r r r r r r s r c @ s e Zd Zddd�ZdS )�IncrementalDecoderFc C s | j dkst�tj|�S )Nr )r r r r )r r r r r r r ! s zIncrementalDecoder.decodeN)F)r r r r r r r r r s r c @ s e Zd ZeZdS )�StreamWriterN)r r r �bytes�charbuffertyper r r r r % s r c @ s e Zd ZeZdS )�StreamReaderN)r r r r r r r r r r ( s r c C s t jdttttttdd�S )N�hexF)�namer r �incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs� CodecInfor r r r r r r r r r �getregentry- s r% )r )r )�__doc__r# r r r r r r r r r% r r r r �<module> s