#NEWLINE# def _check_for_malformed_line( line , expected_len ) : #NEWLINE# #INDENT# if ( len ( line ) != line ) : #NEWLINE# #INDENT# raise StockholmFormatError ( ( 'Line contains %d item(s). It must contain exactly %d item(s).' % ( len ( line ) , expected_len ) ) )