コード例 #1
0
ファイル: telnet.py プロジェクト: willxyu/pymudclient
 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)
コード例 #2
0
ファイル: telnet.py プロジェクト: dmoggles/pymudclient
 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"
コード例 #3
0
    def dataReceived(self, data):
        if self.compression_enabled:
            data = self.decompress.decompress(data)

        Telnet.dataReceived(self, data)
コード例 #4
0
ファイル: telnet.py プロジェクト: bubthegreat/mudpyl
 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)