512
512
# this may happen if e.g. the order is unexpected
513
513
if not re.search(sub_regexp, netrc_hosts_as_text):
514
514
log.warning("can not replace existing netrc entry for '%s' "
516
516
netrc_hosts_as_text = new_netrc_entry + netrc_hosts_as_text
518
518
netrc_hosts_as_text = re.sub(