Current Dir: /snap/core22/2955/usr/lib/python3/dist-packages/serial/urlhandler/__pycache__/
[FILE] protocol_alt.cpython-310.pyc [ edit | delete | rename ]
[FILE] protocol_cp2110.cpython-310.pyc [ edit | delete | rename ]
[FILE] protocol_hwgrep.cpython-310.pyc [ edit | delete | rename ]
[FILE] protocol_loop.cpython-310.pyc [ edit | delete | rename ]
[FILE] protocol_rfc2217.cpython-310.pyc [ edit | delete | rename ]
[FILE] protocol_socket.cpython-310.pyc [ edit | delete | rename ]
[FILE] protocol_spy.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]
Viewing: /snap/core22/2955/usr/lib/python3/dist-packages/serial/urlhandler/__pycache__/protocol_hwgrep.cpython-310.pyc
o
��^W � @ st d dl mZ d dlZd dlZze W n ey eZY nw G dd� dej�Zedkr8ed�Z de _
ee � dS dS )� )�absolute_importNc @ s* e Zd ZdZejjjdd� �Zdd� ZdS )�SerialzOJust inherit the native Serial port implementation and patch the port property.c C sB t |t�r|�d�rtjj�| | �|�� dS tjj�| |� dS )z%translate port name before storing it� hwgrep://N)�
isinstance�
basestring�
startswith�serialr �port�__set__�from_url)�self�value� r �C/usr/lib/python3/dist-packages/serial/urlhandler/protocol_hwgrep.pyr &