#NEWLINE# @ classmethod #NEWLINE# def from_new_socket( cls , host , port ) : #NEWLINE# #INDENT# sock = socket . socket ( ) #NEWLINE# sock . settimeout ( cls . CONNECT_TIMEOUT ) #NEWLINE# sock . connect ( ( host , port ) ) #NEWLINE# sock . settimeout ( None ) #NEWLINE# return cls ( sock )