Viewing File: /usr/lib/python2.7/site-packages/serial/urlhandler/protocol_hwgrep.pyc
ó
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"