Merge "py2: Suppress more CryptographyDeprecationWarnings"
This commit is contained in:
@@ -77,7 +77,7 @@ if (3, 0) <= sys.version_info[:2] <= (3, 5):
|
|||||||
del JsonLoadsPatcher
|
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. '
|
'Python 2 is no longer supported by the Python core team. '
|
||||||
'Support for it is now deprecated in cryptography, '
|
'Support for it is now deprecated in cryptography, '
|
||||||
'and will be removed in a future release.'))
|
'and will be removed in a future release.'))
|
||||||
|
@@ -38,7 +38,7 @@ except ImportError:
|
|||||||
return result[:_MAX_LENGTH] + ' [truncated]...'
|
return result[:_MAX_LENGTH] + ' [truncated]...'
|
||||||
|
|
||||||
import warnings
|
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. '
|
'Python 2 is no longer supported by the Python core team. '
|
||||||
'Support for it is now deprecated in cryptography, '
|
'Support for it is now deprecated in cryptography, '
|
||||||
'and will be removed in a future release.'))
|
'and will be removed in a future release.'))
|
||||||
|
Reference in New Issue
Block a user