summaryrefslogtreecommitdiff
path: root/dev-python/pygal/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-01-04 01:27:12 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-01-04 01:27:12 +0000
commit3517852e3b8a68d1e997770fc0650c5053bafc6c (patch)
tree44068672445b1418489aed82de58df3c470289e7 /dev-python/pygal/files
parent0f15659d48c193027158492acb726297501202c5 (diff)
gentoo resync : 04.01.2022
Diffstat (limited to 'dev-python/pygal/files')
-rw-r--r--dev-python/pygal/files/pygal-2.4.0-fix-py3.10.patch39
-rw-r--r--dev-python/pygal/files/pygal-2.4.0-fix-tests.patch17
2 files changed, 0 insertions, 56 deletions
diff --git a/dev-python/pygal/files/pygal-2.4.0-fix-py3.10.patch b/dev-python/pygal/files/pygal-2.4.0-fix-py3.10.patch
deleted file mode 100644
index ded4ad2ef338..000000000000
--- a/dev-python/pygal/files/pygal-2.4.0-fix-py3.10.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 1525f5e7c18032b34b1be282341d60641161194d Mon Sep 17 00:00:00 2001
-From: Dooley_labs <elderlabs@users.noreply.github.com>
-Date: Sat, 28 Dec 2019 02:29:38 -0500
-Subject: [PATCH] Python 3 compatibility patches
-
----
- pygal/_compat.py | 5 ++++-
- pygal/util.py | 2 +-
- 2 files changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/pygal/_compat.py b/pygal/_compat.py
-index 07ab8846..815585f1 100644
---- a/pygal/_compat.py
-+++ b/pygal/_compat.py
-@@ -20,7 +20,10 @@
- from __future__ import division
-
- import sys
--from collections import Iterable
-+try:
-+ from collections.abc import Iterable
-+except ImportError:
-+ from collections import Iterable
- from datetime import datetime, timedelta, tzinfo
-
- if sys.version_info[0] == 3:
-diff --git a/pygal/util.py b/pygal/util.py
-index 65236173..cca29dbf 100644
---- a/pygal/util.py
-+++ b/pygal/util.py
-@@ -275,7 +275,7 @@ def minify_css(css):
- # Inspired by slimmer by Peter Bengtsson
- remove_next_comment = 1
- for css_comment in css_comments.findall(css):
-- if css_comment[-3:] == '\*/':
-+ if css_comment[-3:] == r'\*/':
- remove_next_comment = 0
- continue
- if remove_next_comment:
diff --git a/dev-python/pygal/files/pygal-2.4.0-fix-tests.patch b/dev-python/pygal/files/pygal-2.4.0-fix-tests.patch
deleted file mode 100644
index 6ae07df3427b..000000000000
--- a/dev-python/pygal/files/pygal-2.4.0-fix-tests.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/pygal/test/conftest.py b/pygal/test/conftest.py
-index ea36010..6fe40cb 100644
---- a/pygal/test/conftest.py
-+++ b/pygal/test/conftest.py
-@@ -48,9 +48,9 @@ def pytest_generate_tests(metafunc):
- if hasattr(sys, 'pypy_version_info'):
- etree.to_etree()
-
-- if "Chart" in metafunc.funcargnames:
-+ if "Chart" in metafunc.fixturenames:
- metafunc.parametrize("Chart", pygal.CHARTS)
-- if "datas" in metafunc.funcargnames:
-+ if "datas" in metafunc.fixturenames:
- metafunc.parametrize(
- "datas", [[("Serie %d" % i, get_data(i)) for i in range(s)]
- for s in (5, 1, 0)]
---