Suppress CryptographyDeprecationWarnings
Change-Id: Id123fb0f9173cf75916984d85bcf8c2d5eefaec2
This commit is contained in:
parent
5de9f4f74d
commit
8ea227a0e5
@ -16,6 +16,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import gettext
|
import gettext
|
||||||
|
import warnings
|
||||||
|
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
@ -74,3 +75,9 @@ if (3, 0) <= sys.version_info[:2] <= (3, 5):
|
|||||||
|
|
||||||
json.loads = JsonLoadsPatcher(json.loads)
|
json.loads = JsonLoadsPatcher(json.loads)
|
||||||
del JsonLoadsPatcher
|
del JsonLoadsPatcher
|
||||||
|
|
||||||
|
|
||||||
|
warnings.filterwarnings('ignore', module='cryptography', 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.'))
|
||||||
|
@ -37,6 +37,12 @@ except ImportError:
|
|||||||
return result
|
return result
|
||||||
return result[:_MAX_LENGTH] + ' [truncated]...'
|
return result[:_MAX_LENGTH] + ' [truncated]...'
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
warnings.filterwarnings('ignore', module='cryptography', 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.'))
|
||||||
|
|
||||||
from eventlet.green import socket
|
from eventlet.green import socket
|
||||||
|
|
||||||
# make unittests pass on all locale
|
# make unittests pass on all locale
|
||||||
|
Loading…
x
Reference in New Issue
Block a user