Debugger/DebuggerInterfacePython3.py

changeset 465
c20e25deb33a
parent 406
eacf81fad150
child 481
ad71812ba395
equal deleted inserted replaced
464:a2b1d1770ef0 465:c20e25deb33a
350 # If we already have a connection, refuse this one. It will be closed 350 # If we already have a connection, refuse this one. It will be closed
351 # automatically. 351 # automatically.
352 if self.qsock is not None: 352 if self.qsock is not None:
353 return False 353 return False
354 354
355 self.connect(sock, SIGNAL('disconnected()'), self.debugServer.startClient) 355 sock.disconnected[()].connect(self.debugServer.startClient)
356 self.connect(sock, SIGNAL('readyRead()'), self.__parseClientLine) 356 sock.readyRead[()].connect(self.__parseClientLine)
357 357
358 self.qsock = sock 358 self.qsock = sock
359 359
360 # Get the remote clients capabilities 360 # Get the remote clients capabilities
361 self.remoteCapabilities() 361 self.remoteCapabilities()
382 return 382 return
383 383
384 # do not want any slots called during shutdown 384 # do not want any slots called during shutdown
385 self.disconnect(self.qsock, SIGNAL('disconnected()'), 385 self.disconnect(self.qsock, SIGNAL('disconnected()'),
386 self.debugServer.startClient) 386 self.debugServer.startClient)
387 self.disconnect(self.qsock, SIGNAL('readyRead()'), self.__parseClientLine) 387 self.qsock.readyRead[()].disconnect(self.__parseClientLine)
388 388
389 # close down socket, and shut down client as well. 389 # close down socket, and shut down client as well.
390 self.__sendCommand('{0}\n'.format(RequestShutdown)) 390 self.__sendCommand('{0}\n'.format(RequestShutdown))
391 self.qsock.flush() 391 self.qsock.flush()
392 392

eric ide

mercurial