15
0
forked from pool/python-blue
Files
python-blue/unpin-tomli.patch
Matej Cepl 604b633a76 - Upgrade to 0.9.0:
- Fix test suite failures due to a confluence of problems
  - Upgrade dependency on Black to 22.1.0 to support Python 3.10
  - Add link to demo site at https://iblueit.dev

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blue?expand=0&rev=15
2022-05-04 17:40:33 +00:00

19 lines
568 B
Diff

---
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 (