File: //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 &