Fix 'no-else-return' pylint warning

This commit is contained in:
Roman Zeyde
2018-08-13 22:10:26 +03:00
parent ff6c9968e8
commit 4598cfc7f6
2 changed files with 2 additions and 4 deletions

View File

@@ -33,8 +33,7 @@ class Demux:
frame = self.sampler.take(size=self.Nsym)
if len(frame) == self.Nsym:
return np.dot(self.filters, frame)
else:
raise StopIteration
raise StopIteration
__next__ = next

View File

@@ -24,8 +24,7 @@ class Reader:
self.total += len(data)
block.extend(data)
return block
else:
raise StopIteration()
raise StopIteration()
finish_time = time.time() + self.timeout
while time.time() <= finish_time: