make use of the new __nonzero__ method
This commit is contained in:
parent
0cd427486c
commit
809b6bea61
@ -210,7 +210,7 @@ class FilterOptions(object):
|
||||
return bool(self.getFilterType())
|
||||
|
||||
def parseFilterOptions(self):
|
||||
if self.getFilterType():
|
||||
if self:
|
||||
robject = {'type': self.getFilterType(), 'corners': self.getOrder()}
|
||||
if len(self.getFreq()) > 1:
|
||||
robject['freqmin'] = self.getFreq()[0]
|
||||
|
Loading…
Reference in New Issue
Block a user