mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Ignore TripleDES python-cryptography import warnings
TripleDES will be deprecated in python-cryptography 48.0.0. We have code that uses it if it is available and otherwise ignores it. Because this gets imports in constants.py this warning is promiment pretty much everywhere. So let's ignore it since we already handle the issue. Related: https://pagure.io/freeipa/issue/9641 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
5cc7941f30
commit
d0684a7ecf
@ -25,6 +25,14 @@ All constants centralised in one file.
|
|||||||
import os
|
import os
|
||||||
import string
|
import string
|
||||||
import uuid
|
import uuid
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
warnings.filterwarnings(
|
||||||
|
"ignore",
|
||||||
|
"TripleDES has been moved to "
|
||||||
|
"cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and "
|
||||||
|
"will be removed from this module in 48.0.0",
|
||||||
|
category=UserWarning)
|
||||||
|
|
||||||
from ipaplatform.constants import constants as _constants
|
from ipaplatform.constants import constants as _constants
|
||||||
from ipapython.dn import DN
|
from ipapython.dn import DN
|
||||||
|
Loading…
Reference in New Issue
Block a user