diff --git a/anaconda b/anaconda
index 6ca3391..676b033 100755
--- a/anaconda
+++ b/anaconda
@@ -37,10 +37,6 @@ from tempfile import mkstemp
# keep up with process ID of the window manager if we start it
wm_pid = None
-# Make sure messages sent through python's warnings module get logged.
-def AnacondaShowWarning(message, category, filename, lineno, file=sys.stderr, line=None):
- log.warning("%s" % warnings.formatwarning(message, category, filename, lineno, line))
-
def startMetacityWM():
childpid = os.fork()
if not childpid:
@@ -575,7 +571,6 @@ if __name__ == "__main__":
isys.initLog()
import signal, string, time
- import warnings
from pyanaconda import iutil
from pyanaconda import vnc
@@ -586,7 +581,6 @@ if __name__ == "__main__":
# Special check for this, since it doesn't make any sense.
if packagesSeen:
- warnings.warn("Ignoring contents of %packages section due to upgrade.")
+ log.warning("Ignoring contents of %packages section due to upgrade.")
elif havePackages(ksdata.packages):
dispatch.skip_steps("tasksel", "group-selection")
else:
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index da10e97..69275ee 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -26,7 +26,6 @@ import os
import os.path
import shutil
import time
-import warnings
import types
import locale
import glob
--
1.7.6
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list