Utilities/SingleApplication.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
53 def __parseLine(self): 53 def __parseLine(self):
54 """ 54 """
55 Private method to handle data from the client. 55 Private method to handle data from the client.
56 """ 56 """
57 while self.qsock and self.qsock.canReadLine(): 57 while self.qsock and self.qsock.canReadLine():
58 line = unicode(self.qsock.readLine()) 58 line = bytes(self.qsock.readLine()).decode()
59 59
60 ## print line ##debug 60 ## print(line) ##debug
61 61
62 eoc = line.find('<') + 1 62 eoc = line.find('<') + 1
63 63
64 boc = line.find('>') 64 boc = line.find('>')
65 if boc >= 0 and eoc > boc: 65 if boc >= 0 and eoc > boc:

eric ide

mercurial