def restify(example_file, filehash, fname):
 write_filename = os.path.join(docs_rst_dir, (fname[:(-2)] + 'rst'))
 try:
  rst_file = parse_file(example_file)
 except IOError as err:
  raise IOError((err.message % fname))
 write_file(rst_file, write_filename)
 if (filehash is not None):
  hash_funcs.update_hash_dict(filehash, fname)

def restify ( example_file , filehash , fname ) : write_filename = os . path . join ( docs_rst_dir , ( fname [ : ( - 2 ) ] + 'rst' ) ) try : rst_file = parse_file ( example_file ) except IOError as err : raise IOError ( ( err . message % fname ) ) write_file ( rst_file , write_filename ) if ( filehash is not None ) : hash_funcs . update_hash_dict ( filehash , fname )
takes a whole file ie .