mirror of
https://github.com/romanz/amodem.git
synced 2026-02-05 16:26:22 +08:00
Fix 'no-else-return' pylint warning
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user