def dataReceived(self, data): if self.fix_broken_godwars_line_endings: while broken_line_ending_pattern.match(data): data = re.sub(broken_line_ending_pattern, "\\1\r\n", data, 1) try: Telnet.dataReceived(self, data) except ValueError as e: print('Telnet error: %s'%e)
def dataReceived(self, data): if self.fix_broken_godwars_line_endings: while broken_line_ending_pattern.match(data): data = re.sub(broken_line_ending_pattern, "\\1\r\n", data, 1) try: Telnet.dataReceived(self, data) except ValueError as e: print("Telnet error: %s" % e) # It may be things getting stuck in 'escaped' self.state = "data"
def dataReceived(self, data): if self.compression_enabled: data = self.decompress.decompress(data) Telnet.dataReceived(self, data)
def dataReceived(self, data): if self.fix_broken_godwars_line_endings: while broken_line_ending_pattern.match(data): data = re.sub(broken_line_ending_pattern, "\\1\r\n", data, 1) Telnet.dataReceived(self, data)