File unpin-tomli.patch of Package python-blue

---
 blue/__init__.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/blue/__init__.py
+++ b/blue/__init__.py
@@ -70,7 +70,10 @@ import black.strings
 from black import Leaf, Path, click, token
 from black.cache import user_cache_dir
 from black.comments import ProtoComment, make_comment
-from black.files import tomli
+try:
+    from black.files import tomli
+except ImportError:
+    from black.files import tomllib as tomli
 from black.linegen import LineGenerator as BlackLineGenerator
 from black.lines import Line
 from black.nodes import (
openSUSE Build Service is sponsored by