diff --git a/IPython/utils/io.py b/IPython/utils/io.py index 1bae12d..422f655 100644 --- a/IPython/utils/io.py +++ b/IPython/utils/io.py @@ -237,9 +237,9 @@ def atomic_writing(path, text=True, encoding='utf-8', **kwargs): """Context manager to write to a file only if the entire write is successful. This works by creating a temporary file in the same directory, and renaming - it over the old file if the context is exited without an error. If the - target file is a symlink or a hardlink, this will not be preserved: it will - be replaced by a new regular file. + it over the old file if the context is exited without an error. If other + file names are hard linked to the target file, this relationship will not be + preserved. On Windows, there is a small chink in the atomicity: the target file is deleted before renaming the temporary file over it. This appears to be