Author ned.deily
Recipients eryksun, lukasz.langa, miss-islington, ned.deily, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-08-29.19:57:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567108672.72.0.468813481124.issue37834@roundup.psfhosted.org>
In-reply-to
Content
... 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'
History
Date User Action Args
2019-08-29 19:57:52ned.deilysetrecipients: + ned.deily, paul.moore, tim.golden, lukasz.langa, zach.ware, eryksun, steve.dower, miss-islington
2019-08-29 19:57:52ned.deilysetmessageid: <1567108672.72.0.468813481124.issue37834@roundup.psfhosted.org>
2019-08-29 19:57:52ned.deilylinkissue37834 messages
2019-08-29 19:57:52ned.deilycreate