From 1f3569f9da0c229553fbf50e683fc3828f55e7e5 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 16 Sep 2024 09:02:51 +0200 Subject: [PATCH 1/1] Ignore SyntaxWarnings for pynliner/cssutils for now --- .config/neomutt/buildmimetree.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5