def _load_cachefile_for_script(self, cache_filename, template):
        s = open(cache_filename).read()
        if s.startswith('#@ARGS '):
            pos = s.find("\n")
            args_str = s[len('#@ARGS '):pos]
            template.args = args_str and args_str.split(', ') or []
            s = s[pos+1:]
        else:
            template.args = None
        if template.encoding:
            #s = s.decode(template.encoding)
            s = s.decode('utf-8')
        template.script = s
        template.compile()
dataset/ETHPy150Open rst2pdf/rst2pdf/rst2pdf/tenjin.py/Engine._load_cachefile_for_script/original