There was an error while loading. Please reload this page.
1 parent e278335 commit 7fcc208Copy full SHA for 7fcc208
2 files changed
Lib/shutil.py
@@ -544,7 +544,7 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2,
544
ignore_dangling_symlinks=ignore_dangling_symlinks,
545
dirs_exist_ok=dirs_exist_ok)
546
547
-if hasattr(stat, 'FILE_ATTRIBUTE_REPARSE_POINT'):
+if hasattr(os.stat_result, 'st_file_attributes'):
548
# Special handling for directory junctions to make them behave like
549
# symlinks for shutil.rmtree, since in general they do not appear as
550
# regular links.
Misc/NEWS.d/next/Library/2019-08-29-16-41-36.bpo-37834.FThnsh.rst
@@ -0,0 +1,2 @@
1
+Prevent shutil.rmtree exception when built on non-Windows system without fd
2
+system call support, like older versions of macOS.
0 commit comments