31 lines
816 B
Diff
31 lines
816 B
Diff
From 95546a2302152676192d5a4880b1e5d09d2f854f Mon Sep 17 00:00:00 2001
|
|
From: Lumir Balhar <lbalhar@redhat.com>
|
|
Date: Fri, 22 Sep 2023 00:11:50 +0200
|
|
Subject: [PATCH] Remove warning from pkg_resources
|
|
|
|
---
|
|
pkg_resources/__init__.py | 7 +------
|
|
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
|
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
|
|
index 3baa1f3..31f81a4 100644
|
|
--- a/pkg_resources/__init__.py
|
|
+++ b/pkg_resources/__init__.py
|
|
@@ -115,12 +115,7 @@ _namespace_handlers = None
|
|
_namespace_packages = None
|
|
|
|
|
|
-warnings.warn(
|
|
- "pkg_resources is deprecated as an API. "
|
|
- "See https://setuptools.pypa.io/en/latest/pkg_resources.html",
|
|
- DeprecationWarning,
|
|
- stacklevel=2,
|
|
-)
|
|
+
|
|
|
|
|
|
_PEP440_FALLBACK = re.compile(r"^v?(?P<safe>(?:[0-9]+!)?[0-9]+(?:\.[0-9]+)*)", re.I)
|
|
--
|
|
2.41.0
|
|
|