def read(self, timeout=<NUM_LIT:1.0>):
self.ser.timeout = timeout<EOL>if self.ser is None:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>return self.ser.readline()<EOL>
read from modem port, return null string on timeout.