#NEWLINE# def bcp_hello( self , **kwargs ) : #NEWLINE# #INDENT# "Processes an incoming BCP 'hello' command." #NEWLINE# try : #NEWLINE# #INDENT# if ( LooseVersion ( kwargs [ 'version' ] ) == LooseVersion ( version . __bcp_version__ ) ) : #NEWLINE# #INDENT# self . send ( 'hello' , version = version . __bcp_version__ ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . send ( 'hello' , version = 'unknown protocol version' ) #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . log . warning ( "Received invalid 'version' parameter with 'hello'" )