Silence warnings while showing PuDB UI

This commit is contained in:
Andreas Kloeckner 2013-11-07 19:36:23 -06:00
parent afe202cdd0
commit 1e691bae0d

View File

@ -1732,6 +1732,10 @@ class DebuggerUI(FrameVarInfoKeeper):
save_config(CONFIG)
self.run_edit_config()
import warnings
prev_warning_filters = warnings.filters[:]
warnings.simplefilter("ignore")
try:
if toplevel is None:
toplevel = self.top
@ -1754,6 +1758,7 @@ class DebuggerUI(FrameVarInfoKeeper):
return self.quit_event_loop
finally:
self.quit_event_loop = prev_quit_loop
warnings.filters[:] = prev_warning_filters
# }}}