You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cheetah-compile test.tmpl
Compiling test.tmpl
Traceback (most recent call last):
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/bin/cheetah-compile", line 11, in <module>
sys.exit(main())
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/cheetah_compile.py", line 91, in main
compile_all(sys.argv[1:])
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/cheetah_compile.py", line 87, in compile_all
compile_template(filename)
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/cheetah_compile.py", line 20, in compile_template
return compile_file(filename, **kwargs)
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/compile.py", line 50, in compile_file
compiled_source = compile_source(contents, **kwargs)
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/compile.py", line 33, in compile_source
return compiler.getModuleCode()
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/legacy_compiler.py", line 541, in getModuleCode
self._parser.parse()
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/legacy_parser.py", line 217, in inner
sys.exc_info()[2]
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/legacy_parser.py", line 207, in inner
return func(self, *args, **kwargs)
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/legacy_parser.py", line 801, in parse
self.eatDirective()
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/legacy_parser.py", line 854, in eatDirective
handler(expr, line_col=line_col)
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/legacy_compiler.py", line 205, in _add_with_line_col
self._update_locals(expr)
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/legacy_compiler.py", line 198, in _update_locals
self._local_vars.update(get_lvalues(expr))
File "/nail/home/asottile/pg/yelp-main/virtualenv_run/lib/python2.7/site-packages/Cheetah/ast_utils.py", line 69, in get_lvalues
ast_obj = ast.parse(expression)
File "/usr/lib64/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
Cheetah.legacy_parser.ParseError:
SyntaxError: unexpected EOF while parsing (<unknown>, line 1)
Line 4, column 2
Line|Cheetah Code
----|-------------------------------------------------------------
1 |#py x = [
2 | 1, ## for reasons
3 | 2,
4 |]
^
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: