remove one indentation level using a continue in the for loop

This commit is contained in:
Vincent Hanquez 2005-04-20 18:04:26 +00:00
parent d6e9079cd8
commit 5c8314df93
1 changed files with 13 additions and 11 deletions

View File

@ -1436,7 +1436,9 @@ class Service_registration_window:
nbrow = 0 nbrow = 0
table = self.xml.get_widget('table') table = self.xml.get_widget('table')
for name in self.infos.keys(): for name in self.infos.keys():
if name != 'key' and name != 'instructions' and name != 'x': if name == 'key' or name == 'instructions' or name == 'x':
continue
nbrow = nbrow + 1 nbrow = nbrow + 1
table.resize(rows = nbrow, columns = 2) table.resize(rows = nbrow, columns = 2)
label = gtk.Label(name.capitalize() + ':') label = gtk.Label(name.capitalize() + ':')