commit: 0e6477393cf2f94f618c1234e6ef3618978cebb4 Author: Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org> AuthorDate: Mon Jan 12 20:13:59 2026 +0000 Commit: Michael Mair-Keimberger <mm1ke <AT> gentoo <DOT> org> CommitDate: Mon Jan 12 20:15:20 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e647739
dev-python/confuse: remove unused patch(es) Signed-off-by: Michael Mair-Keimberger <mm1ke <AT> gentoo.org> dev-python/confuse/files/confuse-2.0.1-py314.patch | 42 ---------------------- 1 file changed, 42 deletions(-) diff --git a/dev-python/confuse/files/confuse-2.0.1-py314.patch b/dev-python/confuse/files/confuse-2.0.1-py314.patch deleted file mode 100644 index 4fcc733df26b..000000000000 --- a/dev-python/confuse/files/confuse-2.0.1-py314.patch +++ /dev/null @@ -1,42 +0,0 @@ -From ed79b4b9f53fe99293139c18f053168e564508b8 Mon Sep 17 00:00:00 2001 -From: wisp3rwind <[email protected]> -Date: Thu, 17 Apr 2025 22:35:06 +0200 -Subject: [PATCH] address deprecation of pkgutil.get_loader - -Closes https://github.com/beetbox/confuse/issues/165 ---- - confuse/util.py | 12 +++++++++--- - 1 file changed, 9 insertions(+), 3 deletions(-) - -diff --git a/confuse/util.py b/confuse/util.py -index c27e161..a3f6e62 100644 ---- a/confuse/util.py -+++ b/confuse/util.py -@@ -1,9 +1,9 @@ -+import importlib.util - import os - import sys - import argparse - import optparse - import platform --import pkgutil - - - UNIX_DIR_FALLBACK = '~/.config' -@@ -114,8 +114,14 @@ def find_package_path(name): - None if the path could not be identified (e.g., if - ``name == "__main__"``). - """ -- # Based on get_root_path from Flask by Armin Ronacher. -- loader = pkgutil.get_loader(name) -+ # Based on get_root_path from Flask by Armin Ronacher, cf. -+ # https://github.com/pallets/flask/blob/85c5d93cbd049c4bd0679c36fd1ddcae8c37b642/src/flask/helpers.py#L570 -+ try: -+ spec = importlib.util.find_spec(name) -+ except (ImportError, ValueError): -+ return None -+ -+ loader = spec.loader - if loader is None or name == '__main__': - return None -
