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
Caching Jinja templates with cacheops under Python 3 throws the error 'TokenStream' object has no attribute 'next'
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 497, in _parse
return Parser(self, source, name, encode_filename(filename)).parse()
File "/usr/lib/python3.6/site-packages/jinja2/parser.py", line 901, in parse
result = nodes.Template(self.subparse(), lineno=1)
File "/usr/lib/python3.6/site-packages/jinja2/parser.py", line 883, in subparse
rv = self.parse_statement()
File "/usr/lib/python3.6/site-packages/jinja2/parser.py", line 137, in parse_statement
return ext(self)
File "/usr/lib/python3.6/site-packages/cacheops/jinja2.py", line 22, in parse
parser.stream.next()
AttributeError: 'TokenStream' object has no attribute 'next'
I think the issue is that in Python 3 this should be using next(parser.stream)
The text was updated successfully, but these errors were encountered:
Caching Jinja templates with cacheops under Python 3 throws the error
'TokenStream' object has no attribute 'next'
I think the issue is that in Python 3 this should be using
next(parser.stream)
The text was updated successfully, but these errors were encountered: