Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, sock, core):
asyncore.dispatcher_with_send.__init__(self, sock=sock)
ProtoMixin.__init__(self)
QObject.__init__(self)
self.core = core
self.idb_path = GetIdbPath()
self.send_packet({
'kind': 'new_client',
'input_file': GetInputFile(),
'idb_path': GetIdbPath(),
'pid': os.getpid(),
})
print("[continuum] Connected.")
def __init__(self, sock, server):
# We need to use old-style init calls here because asyncore
# consists of old-style classes :(
asyncore.dispatcher_with_send.__init__(self, sock=sock)
ProtoMixin.__init__(self)
self.input_file = None
self.idb_path = None
self.server = server
self.project = server.core.project
self.server.clients.add(self)