def dry_run(command, dry_run):
    """Executes a shell command unless the dry run option is set"""
    if not dry_run:
        cmd_parts = command.split(' ')
        # http://plumbum.readthedocs.org/en/latest/local_commands.html#run-and-popen
        return local[cmd_parts[0]](cmd_parts[1:])
    else:
        log.info(command % 'Dry run of %s, skipping')
    return True
dataset/ETHPy150Open michaeljoseph/changes/changes/shell.py/dry_run/swapped operands of `%`