def get_contents(self, origin):
        """
        Returns the contents of template at origin.
        """
        try:
            with io.open(origin.name, encoding=self.engine.file_charset) as fp:
                return fp.read()
        except __HOLE__ as e:
            if e.errno == errno.ENOENT:
                raise TemplateDoesNotExist(origin)
            raise
dataset/ETHPy150Open tethysplatform/tethys/tethys_apps/template_loaders.py/TethysAppsTemplateLoader.get_contents