(bytestring, block_size, char=PAD_CHAR)
return bytestring + padding
Pad `bytestring` to a multiple of `block_size` in length by appending
    `char`. `char` defaults to space.

    >>> simple_pad(b'xyzzy', 8, b'*')
    b'xyzzy***'
Pad `bytestring` to a multiple of `block_size` in length by appending
    `char`. `char` defaults to space.
Pad bytestring to a multiple of block_size in length by appending char . char defaults to space .
def simple_pad(bytestring, block_size, char=PAD_CHAR):
    """
    Pad `bytestring` to a multiple of `block_size` in length by appending
    `char`. `char` defaults to space.

    >>> simple_pad(b'xyzzy', 8, b'*')
    b'xyzzy***'

    """
    assert isinstance(bytestring, bytes)
    padding = ((block_size - len(bytestring)) % block_size) * char
    return bytestring + padding
def simple_pad ( bytestring , block_size , char = PAD_CHAR ) : assert isinstance ( bytestring , bytes ) padding = ( ( block_size - len ( bytestring ) ) % block_size ) * char return bytestring + padding