Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def accept(self):
con, addr = self.__socket.accept()
new_ql_socket = ql_socket(con)
return new_ql_socket, addr
def dup(self):
new_s = self.__socket.dup()
new_ql_socket = ql_socket(new_s)
return new_ql_socket