| Server IP : 178.128.116.179 / Your IP : 216.73.216.206 Web Server : nginx/1.30.3 System : Linux glamautowash 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/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 &