0x1949 Team - FAZEMRX - MANAGER
Edit File: serialutil.cpython-310.pyc
o &�a_%U � @ s� d dl mZ d dlZd dlZze W n eefy% G dd� de�ZY nw ze W n eefy7 e ZY nw ze W n eefyJ e fZ Y nw dd� Zdd� Zed g�Z ed g�Zedg�Zedg�Zd \ZZZZZd\ZZZd\ZZZZededededediZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd� dej#�Z$e%dkr�d dl&Z&e$� Z'e&j(�)d �*e'j+�� e&j(�)d!�*e'j,�� e&j(�)d"�*e'j-�� e&j(�)d#�*e'j.�� e&j(�)d$�*e'j/�� e&j(�)d%�*e'�� dS dS )&� )�absolute_importNc @ s e Zd ZdS )� memoryviewN)�__name__� __module__�__qualname__� r r �3/usr/lib/python3/dist-packages/serial/serialutil.pyr s r c c sD � t | t�r | �� } d} | ||d � }|d7 }|r|V ndS q )z=Iterate over bytes, returning bytes instead of ints (python3)r T� N)� isinstancer �tobytes)�b�i�ar r r � iterbytes( s � �r c C sV t | t�r| S t | t�rt| �S t | t�r| �� S t | t�r%td�| ���tt| ��S )z"convert a sequence to a bytes typez?unicode strings are not supported, please encode to bytes: {!r})r �bytes� bytearrayr r �unicode� TypeError�format)�seqr r r �to_bytes8 s r � � � � )�N�E�O�M�S)r g �?� )� � � � �None�Even�Odd�Mark�Spacec @ � e Zd ZdZdS )�SerialExceptionz.Base class for serial port related exceptions.N�r r r �__doc__r r r r r+ \ � r+ c @ r* )�SerialTimeoutExceptionz Write timeouts give an exceptionNr, r r r r r/ ` r. r/ c s e Zd ZdZ� fdd�Z� ZS )�PortNotOpenErrorzPort is not openc s t t| ��d� d S )Nz)Attempting to use a port that is not open)�superr0 �__init__��self�� __class__r r r2 f s zPortNotOpenError.__init__)r r r r- r2 � __classcell__r r r5 r r0 d s r0 c @ sH e Zd ZdZeed�rejZnejZdd� Zdd� Z dd� Z d d � ZdS )�Timeouta> Abstraction for timeout operations. Using time.monotonic() if available or time.time() in all other cases. The class can also be initialized with 0 or None, in order to support non-blocking and fully blocking I/O operations. The attributes is_non_blocking and is_infinite are set accordingly. � monotonicc C s>