Commit d7d6fd3d authored by Stefan Behnel's avatar Stefan Behnel

disable 'with template' syntax in Python files

parent 6c734f76
......@@ -1504,7 +1504,7 @@ def p_include_statement(s, ctx):
def p_with_statement(s):
s.next() # 'with'
if s.systring == 'template':
if s.systring == 'template' and not s.in_python_file:
node = p_with_template(s)
else:
node = p_with_items(s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment