Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 450d14b

Browse files
committed
Fixed jinja2 environment autoescape to enable select extensions
1 parent 93b03e4 commit 450d14b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/regenerate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""
1616

1717
import jinja2
18+
from jinja2 import select_autoescape
1819
import yaml
1920
import os.path
2021

@@ -184,7 +185,7 @@ def unittest_workflows(indentation=6):
184185
env = jinja2.Environment(
185186
loader=jinja2.FileSystemLoader(d),
186187
lstrip_blocks=True,
187-
autoescape=False,
188+
autoescape=select_autoescape(enabled_extensions=('html', 'xml')),
188189
)
189190

190191
with open(os.path.join(d, 'config.yml'), 'w') as f:

0 commit comments

Comments
 (0)