X-Git-Url: https://git.madduck.net/etc/neomutt.git/blobdiff_plain/1165ebc76a44d454a8e9acb3d9cd0682025df26b..HEAD:/.config/neomutt/buildmimetree.py 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