| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/serial/tools/__pycache__/ |
Upload File : |
o
��^] � @ s� d Z ddlmZ ddlZddlZze W n
eefy! eZY nw dZ ddd�Z
ddd �ZG d
d� dej�ZG dd
� d
ej
�Z
G dd� dej�ZG dd� deej�ZG dd� deej�Zdd� ZdS )aL Python 'hex' Codec - 2-digit hex with spaces content transfer encoding.
Encode and decode may be a bit missleading at first sight...
The textual representation is a hex dump: e.g. "40 41"
The "encoded" data of this is the binary form, e.g. b"@A"
Therefore decoding is binary to text and thus converting binary data to hex dump.
� )�absolute_importN�0123456789ABCDEF�strictc C s t �dd� | �� D ��t| �fS )�'40 41 42' -> b'@ab'c S � g | ]}t |d ��qS �� ��int��.0�h� r �</usr/lib/python3/dist-packages/serial/tools/hexlify_codec.py�
<listcomp>( � zhex_encode.<locals>.<listcomp>)�serial�to_bytes�split�len��data�errorsr r r �
hex_encode&