py2: Suppress more CryptographyDeprecationWarnings

Change-Id: Icdbebb55e85763a7bd2a269753ced61a99e557be
This commit is contained in:
Tim Burke 2020-11-12 17:32:19 -08:00
parent 90c737e355
commit 104afe56fa
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ if (3, 0) <= sys.version_info[:2] <= (3, 5):
del JsonLoadsPatcher
warnings.filterwarnings('ignore', module='cryptography', message=(
warnings.filterwarnings('ignore', module='cryptography|OpenSSL', message=(
'Python 2 is no longer supported by the Python core team. '
'Support for it is now deprecated in cryptography, '
'and will be removed in a future release.'))

View File

@ -38,7 +38,7 @@ except ImportError:
return result[:_MAX_LENGTH] + ' [truncated]...'
import warnings
warnings.filterwarnings('ignore', module='cryptography', message=(
warnings.filterwarnings('ignore', module='cryptography|OpenSSL', message=(
'Python 2 is no longer supported by the Python core team. '
'Support for it is now deprecated in cryptography, '
'and will be removed in a future release.'))