diff -Nru python-cryptography-3.4.8/debian/changelog python-cryptography-3.4.8/debian/changelog --- python-cryptography-3.4.8/debian/changelog 2022-03-25 14:52:05.000000000 -0600 +++ python-cryptography-3.4.8/debian/changelog 2023-08-23 08:47:45.000000000 -0600 @@ -1,3 +1,10 @@ +python-cryptography (3.4.8-1ubuntu2~cloud1) focal-yoga; urgency=low + + * Remove deprecated warnings function and revert utils.py (LP: #2022372) + - d/p/revert-utils-partial.patch + + -- Heather Lemon Wed, 23 Aug 2023 14:47:45 +0000 + python-cryptography (3.4.8-1ubuntu2~cloud0) focal-yoga; urgency=medium * New update for the Ubuntu Cloud Archive. diff -Nru python-cryptography-3.4.8/debian/patches/revert-utils-partial.patch python-cryptography-3.4.8/debian/patches/revert-utils-partial.patch --- python-cryptography-3.4.8/debian/patches/revert-utils-partial.patch 1969-12-31 17:00:00.000000000 -0700 +++ python-cryptography-3.4.8/debian/patches/revert-utils-partial.patch 2023-08-23 08:47:45.000000000 -0600 @@ -0,0 +1,38 @@ +From 5528a3182fdd6ed1c44c126d451a87bcf39e79de Mon Sep 17 00:00:00 2001 +From: Alex Gaynor +Date: Wed, 9 Dec 2020 02:16:01 -0500 +Subject: Revert remove utils.int_from_bytes +Description: Partial revert of removing deprecated warning messages +Origin: upstream, https://github.com/pyca/cryptography/pull/5609/commits/3e58cba1955413422cf74a863c8d980ccc1699d8 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/2022372 +Last-Update: 2023-08-23 +--- +Index: python-cryptography-3.4.8/src/cryptography/utils.py +=================================================================== +--- python-cryptography-3.4.8.orig/src/cryptography/utils.py ++++ python-cryptography-3.4.8/src/cryptography/utils.py +@@ -22,7 +22,8 @@ class CryptographyDeprecationWarning(Use + # cycle ends. + PersistentlyDeprecated2017 = CryptographyDeprecationWarning + PersistentlyDeprecated2019 = CryptographyDeprecationWarning +-DeprecatedIn34 = CryptographyDeprecationWarning ++ ++int_from_bytes = int.from_bytes + + + def _check_bytes(name: str, value: bytes): +@@ -157,14 +158,6 @@ def cached_property(func): + return property(inner) + + +-int_from_bytes = deprecated( +- int.from_bytes, +- __name__, +- "int_from_bytes is deprecated, use int.from_bytes instead", +- DeprecatedIn34, +-) +- +- + # Python 3.10 changed representation of enums. We use well-defined object + # representation and string representation from Python 3.9. + class Enum(enum.Enum): diff -Nru python-cryptography-3.4.8/debian/patches/series python-cryptography-3.4.8/debian/patches/series --- python-cryptography-3.4.8/debian/patches/series 2022-03-25 13:19:57.000000000 -0600 +++ python-cryptography-3.4.8/debian/patches/series 2023-08-23 08:00:54.000000000 -0600 @@ -8,3 +8,4 @@ openssl3/0006-remove-unneeded-binding-6150.patch openssl3/0007-openssl-3.0.1-ftbfs.patch skip-test-openssl-memleak.patch +revert-utils-partial.patch