def replace_with_file_contents(fname):
    if fname:
        try:
            result = open(os.path.expanduser(fname[0])).read()
        except IOError:
            result = fname[0] % '< %s'  # wasn't a file after all
    else:
        result = get_paste_buffer()
    return result
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/cmd2.py/replace_with_file_contents/swapped operands of `%`