def _buffered_read_file(fobj):
 if (PY26 or (PY27 and isinstance(fobj, bz2.BZ2File))):
  return fobj
 else:
  return io.BufferedReader(fobj, buffer_size=_IO_BUFFER_SIZE)

def _buffered_read_file ( fobj ) : if ( PY26 or ( PY27 and isinstance ( fobj , bz2 . BZ2File ) ) ) : return fobj else : return io . BufferedReader ( fobj , buffer_size = _IO_BUFFER_SIZE )
return a buffered version of a read file object .