Show More
@@ -230,7 +230,7 b' def _copy_metadata(src, dst):' | |||||
230 | shutil.copymode(src, dst) |
|
230 | shutil.copymode(src, dst) | |
231 | st = os.stat(src) |
|
231 | st = os.stat(src) | |
232 | if hasattr(os, 'chflags') and hasattr(st, 'st_flags'): |
|
232 | if hasattr(os, 'chflags') and hasattr(st, 'st_flags'): | |
233 | os.chflags(st.st_flags) |
|
233 | os.chflags(dst, st.st_flags) | |
234 |
|
234 | |||
235 | @contextmanager |
|
235 | @contextmanager | |
236 | def atomic_writing(path, text=True, encoding='utf-8', **kwargs): |
|
236 | def atomic_writing(path, text=True, encoding='utf-8', **kwargs): |
General Comments 0
You need to be logged in to leave comments.
Login now