(fname, fallback=_DEFAULT, binary=True)
Return file content.
    fallback: the value returned in case the file does not exist or
              cannot be read
    binary: whether to open the file in binary or text mode.
Return file content.
    fallback: the value returned in case the file does not exist or
              cannot be read
    binary: whether to open the file in binary or text mode.
Return file content . fallback : the value returned in case the file does not exist or cannot be read binary : whether to open the file in binary or text mode .
def cat(fname, fallback=_DEFAULT, binary=True):
    """Return file content.
    fallback: the value returned in case the file does not exist or
              cannot be read
    binary: whether to open the file in binary or text mode.
    """
    try:
        with _open_binary(fname) if binary else _open_text(fname) as f_d:
            return f_d.read().strip()
    except (IOError, OSError):
        if fallback is not _DEFAULT:
            return fallback
        raise
def cat ( fname , fallback = _DEFAULT , binary = True ) : try : with _open_binary ( fname ) if binary else _open_text ( fname ) as f_d : return f_d . read ( ) . strip ( ) except ( IOError , OSError ) : if fallback is not _DEFAULT : return fallback raise