def run(fn, blocksize, seed, c, delta):
    """Run the encoder until the channel is broken, signalling that the 
    receiver has successfully reconstructed the file
    """

    with open(fn, 'rb') as f:
        for block in encode.encoder(f, blocksize, seed, c, delta):
            sys.stdout.buffer.write(block)
def run ( fn , blocksize , seed , c , delta ) : with open ( fn , 'rb' ) as f : for block in encode . encoder ( f , blocksize , seed , c , delta ) : sys . stdout . buffer . write ( block )
Run the encoder until the channel is broken, signalling that the 
    receiver has successfully reconstructed the file