# HG changeset patch # User Goffi # Date 1571413904 -7200 # Node ID 948833e3b54244c895887b6f9a713dc122585660 # Parent 730bbed77a89f740245b07a4c6f6f9a9d2ca0b08 tools (common/template): removed warning catches, jinja2>=2.10.3 now handles them correctly diff -r 730bbed77a89 -r 948833e3b542 sat/tools/common/template.py --- a/sat/tools/common/template.py Fri Oct 18 14:45:07 2019 +0200 +++ b/sat/tools/common/template.py Fri Oct 18 17:51:44 2019 +0200 @@ -50,14 +50,7 @@ sat_templates # to avoid pyflakes warning try: - import warnings - - with warnings.catch_warnings(): - warnings.filterwarnings("ignore", category=DeprecationWarning) - import jinja2 - jinja2_version = tuple([int(n) for n in jinja2.__version__.split('.')]) - if jinja2_version > (2, 10, 1): - log.warning("New jinja2 version available, warnings catches can be removed") + import jinja2 except: raise exceptions.MissingModule( "Missing module jinja2, please install it from http://jinja.pocoo.org or with " diff -r 730bbed77a89 -r 948833e3b542 setup.py --- a/setup.py Fri Oct 18 14:45:07 2019 +0200 +++ b/setup.py Fri Oct 18 17:51:44 2019 +0200 @@ -27,7 +27,7 @@ 'babel', 'dbus-python', 'html2text', - 'jinja2>=2.10', + 'jinja2>=2.10.3', 'langid', 'lxml >= 3.1.0', 'markdown >= 3.0',