virt-manager: Silence gtk deprecation warnings

They are on by default on F21, and they are very noisy
This commit is contained in:
Cole Robinson 2014-09-19 21:47:13 -04:00
parent 55739055fd
commit 775ea8dc72
1 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,12 @@ from virtinst import util as util
from virtinst import cli as virtinstcli
from virtcli import cliconfig
# This is massively heavy handed, but I can't figure out any way to shut
# up the slew of gtk deprecation warnings that clog up our very useful
# stdout --debug output. Of course we could drop use of deprecated APIs,
# but it's a serious quantity of churn
import warnings
warnings.simplefilter("ignore")
try:
# Avoid a deprecation warning about threads_init