gfxdetails: Really fix pylint

This commit is contained in:
Cole Robinson 2014-01-30 11:09:13 -05:00
parent 16390a5433
commit 8a544fa316

View File

@ -165,8 +165,6 @@ class vmmGraphicsDetails(vmmGObjectUI):
is_vnc = (gtype == "vnc")
is_sdl = (gtype == "sdl")
is_spice = (gtype == "spice")
is_other = not (True in [is_vnc, is_sdl, is_spice])
title = (_("%(graphicstype)s Server") %
{"graphicstype" : gfx.pretty_type_simple(gtype)})
@ -183,8 +181,6 @@ class vmmGraphicsDetails(vmmGObjectUI):
self.widget("graphics-password-chk").set_active(use_passwd)
self.widget("graphics-password").set_sensitive(use_passwd)
settype = gtype
if is_spice:
set_port("graphics-tlsport", gfx.tlsPort)
@ -196,9 +192,6 @@ class vmmGraphicsDetails(vmmGObjectUI):
self.widget("graphics-xauth").set_text(
gfx.xauth or _("Unknown"))
if is_other:
settype = gfx.pretty_type_simple(gtype)
uiutil.set_combo_entry(self.widget("graphics-type"), gtype, 0)
return title