14
0

Accepting request 981552 from home:gladiac:mailman3

- Remove Python 3.6 deprecation warning on openSUSE Leap.
  * Added remove_python_3_6_deprecation_warning.patch

Note: This fixes the mailman:test

OBS-URL: https://build.opensuse.org/request/show/981552
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=156
This commit is contained in:
2022-06-13 06:38:29 +00:00
committed by Git OBS Bridge
parent 6580b793ba
commit 774bcc3f83
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
Index: cryptography-37.0.2/src/cryptography/__init__.py
===================================================================
--- cryptography-37.0.2.orig/src/cryptography/__init__.py 2022-06-09 18:07:46.169719315 +0200
+++ cryptography-37.0.2/src/cryptography/__init__.py 2022-06-09 18:07:53.853613006 +0200
@@ -18,12 +18,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 and will be"
- " removed in a future release.",
- CryptographyDeprecationWarning,
- stacklevel=2,
- )