Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def send(self, line):
if not line.endswith(const.LINE_TERM):
line += const.LINE_TERM
self.writer.write(line)
yield from self.writer.drain()