Clean up pylint

This commit is contained in:
Cole Robinson 2010-05-05 16:16:15 -04:00
parent a5f898f6bd
commit 297c84bbc3
3 changed files with 4 additions and 5 deletions

View File

@ -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()

View File

@ -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)

View File

@ -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"