~homeworkprod/byceps

4d64fc328a86338ae76b38da85d5ddb965a81c61 — Jochen Kupperschmidt a month ago 2ecbc08
Import `Markup` from `markupsafe`, not `jinja2`

This avoids a deprecation warning on Jinja v3.0+.
2 files changed, 3 insertions(+), 2 deletions(-)

M byceps/services/news/html_service.py
M byceps/util/templatefilters.py
M byceps/services/news/html_service.py => byceps/services/news/html_service.py +1 -1
@@ 13,7 13,7 @@ from functools import partial
from typing import Optional

from flask_babel import gettext
from jinja2 import Markup
from markupsafe import Markup

from ...util.iterables import find
from ...util.templating import load_template

M byceps/util/templatefilters.py => byceps/util/templatefilters.py +2 -1
@@ 12,8 12,9 @@ from datetime import datetime

from flask import current_app
from flask_babel import format_decimal, gettext
from jinja2 import evalcontextfilter, Markup
from jinja2 import evalcontextfilter
from jinja2.filters import do_default, do_trim
from markupsafe import Markup
import pendulum

from .datetime import format as dateformat