From 143b71e0f3ed6ce38d68814668125f0437530856 2014-09-21 20:16:05 From: Thomas Kluyver Date: 2014-09-21 20:16:05 Subject: [PATCH] Fix for copying metadata flags --- diff --git a/IPython/utils/io.py b/IPython/utils/io.py index 19c5472..809095d 100644 --- a/IPython/utils/io.py +++ b/IPython/utils/io.py @@ -230,7 +230,7 @@ def _copy_metadata(src, dst): shutil.copymode(src, dst) st = os.stat(src) if hasattr(os, 'chflags') and hasattr(st, 'st_flags'): - os.chflags(st.st_flags) + os.chflags(dst, st.st_flags) @contextmanager def atomic_writing(path, text=True, encoding='utf-8', **kwargs):