diff --git a/salt/__init__.py b/salt/__init__.py index e06b8ad712..5f82a386e8 100644 --- a/salt/__init__.py +++ b/salt/__init__.py @@ -55,6 +55,13 @@ def exec_module(self, module): # never show up ) +warnings.filterwarnings( + "ignore", + r"(Use setlocale\(\)|'(cgi|pipes)' is deprecated)", + DeprecationWarning, + r"^(salt|salt\.(.*))$", +) + # Filter the backports package UserWarning about being re-imported warnings.filterwarnings( "ignore",