Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def set_network_manager(cls, target_addr):
network_mgr = NetworkMgr(mode=None, ip=None, port=None)
network_mgr.prepareServerConn(None, target_addr)
if target_addr not in cls.instances:
cls.instances[target_addr] = network_mgr