mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
Clean up pylint
This commit is contained in:
parent
a5f898f6bd
commit
297c84bbc3
@ -193,10 +193,9 @@ class vmmCreatePool(gobject.GObject):
|
||||
for typ in types:
|
||||
model.append([typ, "%s: %s" % (typ, Storage.StoragePool.get_pool_type_desc(typ))])
|
||||
|
||||
def populate_pool_format(self):
|
||||
def populate_pool_format(self, formats):
|
||||
model = self.window.get_widget("pool-format").get_model()
|
||||
model.clear()
|
||||
formats = self._pool.formats
|
||||
for f in formats:
|
||||
model.append([f, f])
|
||||
|
||||
@ -292,7 +291,7 @@ class vmmCreatePool(gobject.GObject):
|
||||
self.window.get_widget("pool-format").set_active(-1)
|
||||
|
||||
if fmt:
|
||||
self.populate_pool_format()
|
||||
self.populate_pool_format(getattr(self._pool, "formats"))
|
||||
self.window.get_widget("pool-format").set_active(0)
|
||||
|
||||
self.populate_pool_sources()
|
||||
|
@ -319,6 +319,6 @@ class vmmStorageBrowser(gobject.GObject):
|
||||
vol.get_format() or "", namestr])
|
||||
|
||||
def show_err(self, info, details):
|
||||
self.show_err(info, details, async=False)
|
||||
self.err.show_err(info, details, async=False)
|
||||
|
||||
gobject.type_register(vmmStorageBrowser)
|
||||
|
@ -23,7 +23,7 @@ ERROR_VBOX="Class 'vbox' has no 'pack_start' member"
|
||||
EXCEPTHOOK="no '__excepthook__' member"
|
||||
CONNECT_VAR="no 'connect' member"
|
||||
DISCONNECT_VAR="no 'disconnect' member"
|
||||
UNABLE_IMPORT="Unable to import 'gtk.gdk.*|Unable to import 'sparkline"
|
||||
UNABLE_IMPORT="Unable to import '(gtk.gdk.*|sparkline|appindicator)"
|
||||
|
||||
# os._exit is needed for forked processes.
|
||||
OS_EXIT="protected member _exit of a client class"
|
||||
|
Loading…
x
Reference in New Issue
Block a user