#NEWLINE# def send( self , data , flags = 0 , timeout = timeout_default ) : #NEWLINE# #INDENT# self . _checkClosed ( ) #NEWLINE# if ( timeout is timeout_default ) : #NEWLINE# #INDENT# timeout = self . timeout #NEWLINE# #UNINDENT# if self . _sslobj : #NEWLINE# #INDENT# if ( flags != 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'non-zero flags not allowed in calls to send() on {}' . format ( self . __class__ ) ) #NEWLINE# #UNINDENT# while True : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . _sslobj . write ( data ) #NEWLINE# #UNINDENT# except SSLWantReadError : #NEWLINE# #INDENT# if ( self . timeout == 0.0 ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# self . _trampoline ( self . fileno ( ) , READ , timeout = self . gettimeout ( ) , timeout_exc = _timeout_exc ) #NEWLINE# #UNINDENT# except SSLWantWriteError : #NEWLINE# #INDENT# if ( self . timeout == 0.0 ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# self . _trampoline ( self . fileno ( ) , WRITE , timeout = self . gettimeout ( ) , timeout_exc = _timeout_exc ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return socket . send ( self , data , flags )