def replacing_symlink(source, link_name):
with make_tmp_name(link_name) as tmp_link_name:<EOL><INDENT>os.symlink(source, tmp_link_name)<EOL>replace_file_or_dir(link_name, tmp_link_name)<EOL><DEDENT>
Create symlink that overwrites any existing target.