D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python3.9
/
site-packages
/
usb
/
__pycache__
/
Filename :
__init__.cpython-39.pyc
back
Copy
a j��Y� � @ sF d Z ddlZddlZdZdZde Zg d�Zdd� Ze� dd lT dS ) a� PyUSB - Easy USB access in Python This package exports the following modules and subpackages: core - the main USB implementation legacy - the compatibility layer with 0.x version backend - the support for backend implementations. control - USB standard control requests. libloader - helper module for backend library loading. Since version 1.0, main PyUSB implementation lives in the 'usb.core' module. New applications are encouraged to use it. � NzWander Lairson Costa)� r � z%d.%d.%d)�legacyZcontrolZcoreZbackend�utilZ libloaderc C s� ddl m} t�d�}t�d�}|d ur�| �d� t�d�}tjtjtj tj tjd�}|�|tjd �}|j |d � zt�|�}W n t�� }Y n0 t�d �}|�|� |�|� n.G dd� dtj�}|� tjd � |�|� � d S ) Nr )�_debug�usbZPYUSB_DEBUGTZPYUSB_LOG_FILENAME)�debug�infoZwarning�errorZcritical� )�levelz.%(asctime)s %(levelname)s:%(name)s:%(message)sc @ s e Zd Zdd� ZdS )z_setup_log.<locals>.NullHandlerc S s d S )N� )�self�recordr r �0/usr/lib/python3.9/site-packages/usb/__init__.py�emitR s z$_setup_log.<locals>.NullHandler.emitN)�__name__� __module__�__qualname__r r r r r �NullHandlerQ s r )r r �loggingZ getLogger�os�getenvZenable_tracing�DEBUG�INFOZWARNINGZERRORZCRITICAL�getZsetLevelZFileHandlerZ StreamHandlerZ FormatterZsetFormatterZ addHandlerZHandler) r �loggerZdebug_level�filenameZLEVELSr ZhandlerZfmtr r r r � _setup_log6 s0 � r )�*) �__doc__r r � __author__�version_info�__version__�__all__r Z usb.legacyr r r r �<module> s '