Blob Blame History Raw
commit cf1da553452aa9df198253139f5d1b066dadffd0
Author: Chris Lumens <clumens@redhat.com>
Date:   Wed Apr 6 13:59:54 2016 -0400

    Ignore DeprecationWarnings originating in pykickstart itself.
    
    Users of pykickstart only care about deprecation warnings in their own
    code, not internal to pykickstart.  So ignore all those.

diff --git a/pykickstart/__init__.py b/pykickstart/__init__.py
index aefb9e2..92a45c5 100644
--- a/pykickstart/__init__.py
+++ b/pykickstart/__init__.py
@@ -1,2 +1,6 @@
+# Ignore PendingDeprecationWarnings in the pykickstart module itself.  There's
+# nothing users of pykickstart can do about those.  Instead just print out ones
+# for users of the code.
 import warnings
-warnings.simplefilter("module", PendingDeprecationWarning)
+warnings.filterwarnings("once", category=PendingDeprecationWarning)
+warnings.filterwarnings("ignore", category=PendingDeprecationWarning, module="pykickstart")