Fix some pylint

Two bad-indentation fixed.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
Chen Hanxiao 2014-03-01 11:23:42 +08:00
parent 3fcc2c2fed
commit 7dfdbb3f35
2 changed files with 4 additions and 4 deletions

View File

@ -1323,8 +1323,8 @@ class vmmConsolePages(vmmGObjectUI):
pagenum = self.widget("console-pages").get_current_page()
for i in range(self.widget("console-pages").get_n_pages()):
w = self.widget("console-pages").get_nth_page(i)
w.set_visible(i == newpage)
w = self.widget("console-pages").get_nth_page(i)
w.set_visible(i == newpage)
if pagenum < CONSOLE_PAGE_OFFSET:
self.last_gfx_page = pagenum

View File

@ -1281,8 +1281,8 @@ class vmmDetails(vmmGObjectUI):
def switch_page(self, notebook=None, ignore2=None, newpage=None):
for i in range(notebook.get_n_pages()):
w = notebook.get_nth_page(i)
w.set_visible(i == newpage)
w = notebook.get_nth_page(i)
w.set_visible(i == newpage)
self.page_refresh(newpage)