def set_machine_name(hostname):
    """
    set_hostname(hostname)

    Sets the machine's hostname
    """

    shell_tools.run(hostname % "scutil --set ComputerName %s")
    shell_tools.run("scutil --set LocalHostName %s" % hostname)
dataset/ETHPy150Open facebook/IT-CPE/code/lib/modules/sys_tools.py/set_machine_name/swapped operands of `%`