pylint fixes

This commit is contained in:
Chris Jones 2009-10-09 00:30:03 +01:00
parent 7605957efa
commit c1c81d3a91
2 changed files with 89 additions and 88 deletions

View File

@ -113,5 +113,6 @@ class TerminatorEncoding:
def get_list(): def get_list():
"""Return a list of supported encodings""" """Return a list of supported encodings"""
return TerminatorEncoding.encodings return TerminatorEncoding.encodings
get_list = staticmethod(get_list) get_list = staticmethod(get_list)

View File

@ -89,12 +89,12 @@ class Terminator(Borg):
if self.groupsend == self.groupsend_type['all']: if self.groupsend == self.groupsend_type['all']:
return(self.terminals) return(self.terminals)
elif self.groupsend == self.groupsend_type['group']: elif self.groupsend == self.groupsend_type['group']:
set = [] termset = []
for term in self.terminals: for term in self.terminals:
if term == widget or (term.group != None and term.group == if term == widget or (term.group != None and term.group ==
widget.group): widget.group):
set.append(term) termset.append(term)
return(set) return(termset)
else: else:
return([widget]) return([widget])