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: |