def get_source(self, environment, template):
        pieces = split_template_path(template)
        for searchpath in self.searchpath:
            filename = path.join(searchpath, *pieces)
            f = open_if_exists(filename)
            if f is None:
                continue
            try:
                contents = f.read().decode(self.encoding)
            finally:
                f.close()

            mtime = path.getmtime(filename)
            def uptodate():
                try:
                    return path.getmtime(filename) == mtime
                except __HOLE__:
                    return False
            return contents, filename, uptodate
        raise TemplateNotFound(template)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/loaders.py/FileSystemLoader.get_source