文件操作 - list_ports_posix.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/serial/tools/__pycache__/list_ports_posix.cpython-310.pyc
编辑文件内容
o ��^� � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ej� � Z e dd� dkr.ddlmZ n�e dd� d kr=ddl mZ n�e d krGd%dd �Zn�e dd� dkrUd%dd �Znve dd� dksee dd� dkrkd%dd �Zn`e dd� dkryd%dd �ZnRe dd� dkr�d%dd �ZnDe dd� dkr�d%dd �Zn6e dd� dkr�d%dd �Zn(e dd� dkr�d%d d �ZnddlZej�d!�ejejej�� ed"�ej���ed#kr�ee� �D ]\ZZZed$�eee�� q�dS dS )&a The ``comports`` function is expected to return an iterable that yields tuples of 3 strings: port name, human readable description and a hardware ID. As currently no method is known to get the second two strings easily, they are currently just identical to the port name. � )�absolute_importN)�list_ports_common� �linux)�comports� �darwin�cygwinFc C �, t � d�}| r|�t�|�� dd� |D �S )Nz /dev/ttyS*c S � g | ]}t �|��qS � �r �ListPortInfo��.0�dr r �?/usr/lib/python3/dist-packages/serial/tools/list_ports_posix.py� <listcomp>+ � �comports.<locals>.<listcomp>��glob�extendr � list_links�� include_links�devicesr r r r '