3
M]W/ @ sf d dl Z d dlZ ye W n ek
r0 eZY nX G dd de jZedkrbedZde_e e dS ) Nc @ s* e Zd ZdZejjjdd Zdd ZdS )SerialzOJust inherit the native Serial port implementation and patch the port property.c C s@ t |tr,|jdr,tjjj| | j| ntjjj| | dS )z%translate port name before storing itz hwgrep://N)
isinstance
basestring
startswithserialr port__set__from_url)selfvalue r %/usr/lib/python3.6/protocol_hwgrep.pyr $ s zSerial.portc
C s, |j jdr|dd }d}d}|jd}|jd}xv|D ]n}d|krZ|jdd\}}n|}d}|d krt|d }|dk rtd
j|q<|dkrd}q