| Server IP : 85.155.190.233 / Your IP : 216.73.216.103 Web Server : nginx/1.24.0 System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : wp-moonbloom ( 1001) PHP Version : 8.3.6 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 &