OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó
qôNNc @ s^ d d l Z d d l Z d e j f d „ ƒ YZ e d k rZ e d ƒ Z d e _ e GHn d S( iÿÿÿÿNt Serialc B s; e Z d Z d „ Z d „ Z e e j j e d d ƒZ RS( sO Just inherit the native Serial port implementation and patch the open function.c C sT t | t ƒ r= | j d ƒ r= t j j | | j | ƒ ƒ n t j j | | ƒ d S( s% translate port name before storing its hwgrep://N( t
isinstancet
basestringt
startswitht serialR t setPortt fromURL( t selft value( ( sE /usr/lib/python2.7/site-packages/serial/urlhandler/protocol_hwgrep.pyR s c C sf | j ƒ j d ƒ r" | d } n x= t j j j | ƒ D] \ } } } | SWt j d | f ƒ ‚ d S( s( extract host and port from an URL strings hwgrep://i s! no ports found matching regexp %rN( t lowerR R t toolst
list_portst grept SerialException( R t urlt portt desct hwid( ( sE /usr/lib/python2.7/site-packages/serial/urlhandler/protocol_hwgrep.pyR s
%t docs Port setting(
t __name__t
__module__t __doc__R R t propertyR R t getPortR ( ( ( sE /usr/lib/python2.7/site-packages/serial/urlhandler/protocol_hwgrep.pyR s
t __main__s hwgrep://ttyS0( R t serial.tools.list_portsR R t Nonet sR ( ( ( sE /usr/lib/python2.7/site-packages/serial/urlhandler/protocol_hwgrep.pyt