Remove old compatibility code

This commit is contained in:
Simon Conseil
2022-01-14 13:52:45 +01:00
parent b31707a3d4
commit 23a96a074b
2 changed files with 2 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ python_requires = >=3.8
install_requires =
blinker
click
Jinja2
Jinja2>=2.7
Markdown
Pillow>=4.0.0
pilkit

View File

@@ -76,12 +76,7 @@ class AbstractWriter:
)
# setup jinja env
env_options = {"trim_blocks": True, "autoescape": True}
try:
if tuple(int(x) for x in jinja2.__version__.split(".")) >= (2, 7):
env_options["lstrip_blocks"] = True
except ValueError:
pass
env_options = {"trim_blocks": True, "autoescape": True, "lstrip_blocks": True}
loaders = [
FileSystemLoader(theme_relpath),