def get_file_listing(paths, files, extensions):
    """Generate listing with all files that should be check."""
    result = []
    if files:
        result += files

    # pylint: disable=E1101
    for path in paths:
        if extensions:
            for extension in extensions:
                result += glob2.glob((path, extension) % "%s/**/*.%s")
        else:
            result += glob2.glob("%s/**/*" % path)
    # pylint: enable=E1101

    return result
dataset/ETHPy150Open openstack/openstack-doc-tools/cleanup/retf/retf.py/get_file_listing/swapped operands of `%`