]> git.madduck.net Git - etc/neomutt.git/blobdiff - .config/neomutt/buildmimetree.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Ignore SyntaxWarnings for pynliner/cssutils for now
[etc/neomutt.git] / .config / neomutt / buildmimetree.py
index 6894e087ee1aacb35a5309c23b49c48d1ee727c3..a27f64c1488bbf1417add4edae91f09a7127e992 100755 (executable)
@@ -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