]> git.madduck.net Git - etc/neomutt.git/commitdiff

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 main
authormartin f. krafft <madduck@madduck.net>
Mon, 16 Sep 2024 07:02:51 +0000 (09:02 +0200)
committermartin f. krafft <madduck@madduck.net>
Mon, 16 Sep 2024 07:03:11 +0000 (09:03 +0200)
.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 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
 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:
 
 
 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
 
 
     _PYNLINER = True