#NEWLINE# def version_is_compatible( imp_version , version ) : #NEWLINE# #INDENT# 'Determine whether versions are compatible.\n\n    :param imp_version: The version implemented\n    :param version: The version requested by an incoming message.\n    ' #NEWLINE# version_parts = version . split ( '.' ) #NEWLINE# imp_version_parts = imp_version . split ( '.' ) #NEWLINE# if ( int ( version_parts [ 0 ] ) != int ( imp_version_parts [ 0 ] ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( int ( version_parts [ 1 ] ) > int ( version [ 1 ] ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True