def start(self):
        for porttry in range(_maxTries):
            port = _startPort + ((porttry + os.getpid()) % _maxTries)
            try:
                self.address = ('localhost', port)
                self.smtp = MockSmtpServer(self.address, None)
                break
            except Exception:
                pass
        else:
            raise Exception('Could not bind to any port for Mock SMTP server')

        self.thread = threading.Thread(target=self.loop)
        self.thread.daemon = True
        self.thread.start()
Write a single character to the screen. Wrap the cursor if necessary.
dataset/ETHPy150Open girder/girder/tests/mock_smtp.py/MockSmtpReceiver.start--crossover with--dataset/ETHPy150Open kdart/pycopia/QA/pycopia/terminal.py/Screen.writechar