lib/imageio/core/request.py
def read_n_bytes(f, N):
    """ read_n_bytes(file, n)
    
    Read n bytes from the given file, or less if the file has less
    bytes. Returns zero bytes if the file is closed.
    """
    bb = binary_type()
    while len(bb) < N:
        extra_bytes = f.read(N-len(bb))
        if not extra_bytes:
            break
        bb += extra_bytes
    return bb
 read_n_bytes(file, n)
    
    Read n bytes from the given file, or less if the file has less
    bytes. Returns zero bytes if the file is closed.
    
read_n_bytes(file, n)
Read n bytes from the given file, or less if the file has less
bytes. Returns zero bytes if the file is closed.
read_n_bytes ( file n ) Read n bytes from the given file or less if the file has less bytes . Returns zero bytes if the file is closed .
def read_n_bytes(f, N):
    bb = binary_type()
    while len(bb) < N:
        extra_bytes = f.read(N-len(bb))
        if not extra_bytes:
            break
        bb += extra_bytes
    return bb
def read_n_bytes ( f , N ) : bb = binary_type ( ) while len ( bb ) < N : extra_bytes = f . read ( N - len ( bb ) ) if not extra_bytes : break bb += extra_bytes return bb
read_n_bytes(file, n)
Read n bytes from the given file, or less if the file has less
bytes.
read_n_bytes ( file n ) Read n bytes from the given file or less if the file has less bytes .
""" read_n_bytes(file, n)
    
    Read n bytes from the given file, or less if the file has less
    bytes. Returns zero bytes if the file is closed.
    """
f
N