mirror of
https://github.com/romanz/amodem.git
synced 2026-02-07 01:18:02 +08:00
recv: output.write() should get bytes (not bytearray)
This commit is contained in:
@@ -165,7 +165,7 @@ class Receiver(object):
|
||||
|
||||
data = framing.decode(bitstream)
|
||||
for chunk in common.iterate(data=data, size=256,
|
||||
truncate=False, func=bytearray):
|
||||
truncate=False, func=bytes):
|
||||
output.write(chunk)
|
||||
self.output_size += len(chunk)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user