Current File : //usr/lib/python2.7/site-packages/serial/urlhandler/protocol_hwgrep.pyo |
�
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"