mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virtManager: add coverage annotations and remove dead code
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
|
||||
from virtinst import xmlutil
|
||||
|
||||
|
||||
#####################
|
||||
# UI getter helpers #
|
||||
@@ -142,8 +144,7 @@ def set_grid_row_visible(child, visible):
|
||||
"""
|
||||
parent = child.get_parent()
|
||||
if not isinstance(parent, Gtk.Grid):
|
||||
raise RuntimeError("Programming error, parent must be grid, "
|
||||
"not %s" % type(parent))
|
||||
raise xmlutil.DevError("parent must be grid, not %s" % type(parent))
|
||||
|
||||
row = child_get_property(parent, child, "top-attach")
|
||||
for c in parent.get_children():
|
||||
|
||||
Reference in New Issue
Block a user