Matej Cepl
24bd9a4244
- adjust patch remove_python_3_6_deprecation_warning.patch to version 39.0.0 OBS-URL: https://build.opensuse.org/request/show/1057951 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=170
32 lines
980 B
Diff
32 lines
980 B
Diff
From 172adcb524950666fa223ed325d87bf355bca50d Mon Sep 17 00:00:00 2001
|
|
From: Johannes Kastl <kastl@b1-systems.de>
|
|
Date: Thu, 12 Jan 2023 11:12:53 +0100
|
|
Subject: [PATCH] remove python3.6 deprecation warning
|
|
|
|
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
|
|
---
|
|
src/cryptography/__init__.py | 10 ----------
|
|
1 file changed, 10 deletions(-)
|
|
|
|
diff --git a/src/cryptography/__init__.py b/src/cryptography/__init__.py
|
|
index 07c894ea3..91b624bf0 100644
|
|
--- a/src/cryptography/__init__.py
|
|
+++ b/src/cryptography/__init__.py
|
|
@@ -13,13 +13,3 @@ __all__ = [
|
|
"__author__",
|
|
"__copyright__",
|
|
]
|
|
-
|
|
-if sys.version_info[:2] == (3, 6):
|
|
- warnings.warn(
|
|
- "Python 3.6 is no longer supported by the Python core team. "
|
|
- "Therefore, support for it is deprecated in cryptography. The next "
|
|
- "release of cryptography (40.0) will be the last to support Python "
|
|
- "3.6.",
|
|
- CryptographyDeprecationWarning,
|
|
- stacklevel=2,
|
|
- )
|
|
--
|
|
2.39.0
|
|
|