526
526
with open(auth_conf_path_tmp.name, "w") as auth_conf_tmp:
527
527
auth_conf_tmp.write(netrc_hosts_as_text)
528
528
os.rename(auth_conf_path_tmp.name, auth_conf_path)
529
530
os.chmod(auth_conf_path, mode)
531
532
log.warn("Failed to write auth.conf: '%s'" % error)