Message350824
... and the other important difference is that older versions of macOS do not support fd functions so _use_fd_functions is false and the alternate path is taken in shutil.rmtree, the path that calls _rm_tree_islink which fails.
>>> shutil.rmtree('a')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 718, in rmtree
if _rmtree_islink(path):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shutil.py", line 564, in _rmtree_islink
(st.st_file_attributes & stat.FILE_ATTRIBUTE_REPARSE_POINT
AttributeError: 'os.stat_result' object has no attribute 'st_file_attributes' |
|
Date |
User |
Action |
Args |
2019-08-29 19:57:52 | ned.deily | set | recipients:
+ ned.deily, paul.moore, tim.golden, lukasz.langa, zach.ware, eryksun, steve.dower, miss-islington |
2019-08-29 19:57:52 | ned.deily | set | messageid: <1567108672.72.0.468813481124.issue37834@roundup.psfhosted.org> |
2019-08-29 19:57:52 | ned.deily | link | issue37834 messages |
2019-08-29 19:57:52 | ned.deily | create | |
|