def import_file_to_hst(fpath):
 try:
  with open(fpath, 'r', encoding='utf-8') as f:
   return import_buffer_to_hst(f.read())
 except IOError as e:
  raise HyIOError(e.errno, e.strerror, e.filename)

def import_file_to_hst ( fpath ) : try : with open ( fpath , 'r' , encoding = 'utf-8' ) as f : return import_buffer_to_hst ( f . read ( ) ) except IOError as e : raise HyIOError ( e . errno , e . strerror , e . filename )
import content from fpath and return a hy ast .