@serial.Serial.port.setter
    def port(self, value):
        if isinstance(value, basestring) and value.startswith('hwgrep://'):
            serial.Serial.port.__set__(self, self.from_url(value))
        else:
            serial.Serial.port.__set__(self, value)
translate port name before storing it
dataset/ETHPy150Open pyserial/pyserial/serial/urlhandler/protocol_hwgrep.py/Serial.port