| Server IP : 159.69.118.108 / Your IP : 216.73.216.231 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-4gb-fsn1-1 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 13:53:54 UTC 2025 aarch64 User : root ( 0) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/serial/tools/__pycache__/ |
Upload File : |
�
��^] � �8 � d Z ddlmZ ddlZddlZ e dZ dd�Z
dd�Z G d� dej � Z G d � d
ej � Z
G d� dej � Z G d
� deej � Z G d� deej � Zd� Zy# eef$ r eZY ��w xY w)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�0123456789ABCDEFc � � t j | j � D �cg c] }t |d� �� c}� t | � fS c c}w �z'40 41 42' -> b'@ab'� )�serial�to_bytes�split�int�len)�data�errors�hs �</usr/lib/python3/dist-packages/serial/tools/hexlify_codec.py�
hex_encoder &