def _is_bad_fname(fname):
 if fname.endswith('(whitened)'):
  fname = fname[:(-11)]
 if (not fname.endswith(tuple((VALID_EXTENSIONS + ['bem', 'custom'])))):
  return 'red'
 else:
  return ''

def _is_bad_fname ( fname ) : if fname . endswith ( '(whitened)' ) : fname = fname [ : ( - 11 ) ] if ( not fname . endswith ( tuple ( ( VALID_EXTENSIONS + [ 'bem' , 'custom' ] ) ) ) ) : return 'red' else : return ''
identify bad file naming patterns and highlight them in the toc .