def validate_files(pelican):
 for (dirpath, _, filenames) in os.walk(pelican.settings['OUTPUT_PATH']):
  for name in filenames:
   if should_validate(name):
    filepath = os.path.join(dirpath, name)
    validate(filepath)

def validate_files ( pelican ) : for ( dirpath , _ , filenames ) in os . walk ( pelican . settings [ 'OUTPUT_PATH' ] ) : for name in filenames : if should_validate ( name ) : filepath = os . path . join ( dirpath , name ) validate ( filepath )
validate a generated html file .