def bufsize_type_to_bufsize(bf_type):
    """ for a given bufsize type, return the actual bufsize we will read.
    notice that although 1 means "newline-buffered", we're reading a chunk size
    of 1024.  this is because we have to read something.  we let a
    StreamBufferer instance handle splitting our chunk on newlines """
    if bf_type == 1:
        bufsize = 1024
    elif bf_type == 0:
        bufsize = 1
    else:
        bufsize = bf_type
    return bufsize
