def _write(self, str):
        """Write a string to the modem."""
        
        self._log(repr(str), "write")

        try:
            self.device.write(str)

        # if the device couldn't be written to,
        # wrap the error in something that can
        # sensibly be caught at a higher level
        except __HOLE__, err:
            raise(errors.GsmWriteError)
dataset/ETHPy150Open sahana/eden/modules/pygsm/gsmmodem.py/GsmModem._write