comparison libervia/backend/tools/common/data_objects.py @ 4087:f8284f994948

tools (common/data_objects): fix import of Markup following change after Jinja2 version bump
author Goffi <goffi@goffi.org>
date Thu, 08 Jun 2023 21:26:09 +0200
parents 4b842c1fb686
children 11e802089b19
comparison
equal deleted inserted replaced
4086:479192bc0fa8 4087:f8284f994948
21 from libervia.backend.core.constants import Const as C 21 from libervia.backend.core.constants import Const as C
22 from libervia.backend.tools.common import data_format 22 from libervia.backend.tools.common import data_format
23 from os.path import basename 23 from os.path import basename
24 24
25 try: 25 try:
26 from jinja2 import Markup as safe 26 from markupsafe import Markup as safe
27 except ImportError: 27 except ImportError:
28 safe = str 28 safe = str
29 29
30 from libervia.backend.tools.common import uri as xmpp_uri 30 from libervia.backend.tools.common import uri as xmpp_uri
31 import urllib.request, urllib.parse, urllib.error 31 import urllib.request, urllib.parse, urllib.error