From: martin f. krafft Date: Mon, 16 Sep 2024 07:02:51 +0000 (+0200) Subject: Ignore SyntaxWarnings for pynliner/cssutils for now X-Git-Url: https://git.madduck.net/etc/neomutt.git/commitdiff_plain/1f3569f9da0c229553fbf50e683fc3828f55e7e5?ds=inline Ignore SyntaxWarnings for pynliner/cssutils for now --- diff --git a/.config/neomutt/buildmimetree.py b/.config/neomutt/buildmimetree.py index 6894e08..a27f64c 100755 --- a/.config/neomutt/buildmimetree.py +++ b/.config/neomutt/buildmimetree.py @@ -50,6 +50,7 @@ import bs4 import xml.etree.ElementTree as etree import io import enum +import warnings from contextlib import contextmanager from collections import namedtuple, OrderedDict from markdown.extensions import Extension @@ -451,7 +452,10 @@ def markdown_with_inline_image_support( try: - import pynliner + with warnings.catch_warnings(): + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1081037 + warnings.filterwarnings("ignore", category=SyntaxWarning) + import pynliner _PYNLINER = True