diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-16 20:27:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-16 20:27:28 +0000 |
commit | 2fd57282f0262ca084e05b0f2c63fbada395d02b (patch) | |
tree | 4e0f23cea9ce9fd972e70ebc5214bf36fed465cc /dev-python/colorclass/files | |
parent | c3bc61051d7f12b4c682efa7a5460bbc8815649e (diff) |
gentoo resync : 16.01.2021
Diffstat (limited to 'dev-python/colorclass/files')
-rw-r--r-- | dev-python/colorclass/files/colorclass-2.2.0-fix-py3.10.patch | 28 | ||||
-rw-r--r-- | dev-python/colorclass/files/colorclass-2.2.0-tests.patch | 12 |
2 files changed, 0 insertions, 40 deletions
diff --git a/dev-python/colorclass/files/colorclass-2.2.0-fix-py3.10.patch b/dev-python/colorclass/files/colorclass-2.2.0-fix-py3.10.patch deleted file mode 100644 index ee67d6d40bb3..000000000000 --- a/dev-python/colorclass/files/colorclass-2.2.0-fix-py3.10.patch +++ /dev/null @@ -1,28 +0,0 @@ -From f8bbe9fdcff1d97b1d0e5dcb94680923cc43a507 Mon Sep 17 00:00:00 2001 -From: Ralph Broenink <ralph@ralphbroenink.net> -Date: Mon, 24 Aug 2020 14:49:24 +0200 -Subject: [PATCH] Make code forwards-compatible with Python 3.9 - -Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working ---- - colorclass/codes.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/colorclass/codes.py b/colorclass/codes.py -index b0ecb03..8b6085d 100644 ---- a/colorclass/codes.py -+++ b/colorclass/codes.py -@@ -1,7 +1,12 @@ - """Handles mapping between color names and ANSI codes and determining auto color codes.""" - - import sys --from collections import Mapping -+try: -+ # Using or importing the ABCs from 'collections' instead of from 'collections.abc' is -+ # deprecated since Python 3.3, and in 3.9 it will stop working -+ from collections.abc import Mapping -+except ImportError: -+ from collections import Mapping - - BASE_CODES = { - '/all': 0, 'b': 1, 'f': 2, 'i': 3, 'u': 4, 'flash': 5, 'outline': 6, 'negative': 7, 'invis': 8, 'strike': 9, diff --git a/dev-python/colorclass/files/colorclass-2.2.0-tests.patch b/dev-python/colorclass/files/colorclass-2.2.0-tests.patch deleted file mode 100644 index f25dd0440aa7..000000000000 --- a/dev-python/colorclass/files/colorclass-2.2.0-tests.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/tests/test_example.py b/tests/test_example.py -index 7ee8c05..3516460 100644 ---- a/tests/test_example.py -+++ b/tests/test_example.py -@@ -10,6 +10,7 @@ from tests.conftest import PROJECT_ROOT - from tests.screenshot import RunNewConsole, screenshot_until_match - - -+@pytest.mark.skip(reason="test fails on all platforms") - @pytest.mark.parametrize('colors', [True, False, None]) - @pytest.mark.parametrize('light_bg', [True, False, None]) - def test_piped(colors, light_bg): |