RefactoringRope/JsonServer.py

changeset 353
d38295fd97c2
parent 347
b5048b5ff454
child 354
a967ff16629a
equal deleted inserted replaced
352:d3750fb22e5e 353:d38295fd97c2
143 while connection and connection.canReadLine(): 143 while connection and connection.canReadLine():
144 data = connection.readLine() 144 data = connection.readLine()
145 jsonLine = bytes(data).decode("utf-8", 'backslashreplace') 145 jsonLine = bytes(data).decode("utf-8", 'backslashreplace')
146 146
147 #- print("JSON Server ({0}): {1}".format(self.__name, jsonLine)) 147 #- print("JSON Server ({0}): {1}".format(self.__name, jsonLine))
148 # __IGNORE_WARNING_M891__
148 #- this is for debugging only 149 #- this is for debugging only
149 150
150 try: 151 try:
151 clientDict = json.loads(jsonLine.strip()) 152 clientDict = json.loads(jsonLine.strip())
152 except (TypeError, ValueError) as err: 153 except (TypeError, ValueError) as err:

eric ide

mercurial