#NEWLINE# def _validate_backend_language( backend , language ) : #NEWLINE# #INDENT# 'Throws error if backend and language are incompatible' #NEWLINE# langs = _lang_lookup . get ( backend . upper ( ) , False ) #NEWLINE# if ( not langs ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Unrecognized backend: ' + backend ) ) #NEWLINE# #UNINDENT# if ( language . upper ( ) not in langs ) : #NEWLINE# #INDENT# raise ValueError ( 'Backend {0} and language {1} are incompatible' . format ( backend , langs ) )