#NEWLINE# def wrap_socket( self , sock , server_side = False , do_handshake_on_connect = True , suppress_ragged_eofs = True , server_hostname = None ) : #NEWLINE# #INDENT# conn = ossl . Connection ( self . _ctx , sock ) #NEWLINE# return SSLSocket ( conn , server_side , do_handshake_on_connect , suppress_ragged_eofs , server_hostname , self . check_hostname )