Skip to content

bpo-36035: pathlib.Path().rglob() breaks with broken symlinks#11964

Closed
eamanu wants to merge 2 commits into
python:masterfrom
eamanu:36035
Closed

bpo-36035: pathlib.Path().rglob() breaks with broken symlinks#11964
eamanu wants to merge 2 commits into
python:masterfrom
eamanu:36035

Conversation

@eamanu

@eamanu eamanu commented Feb 21, 2019

Copy link
Copy Markdown
Contributor

bpo-36035: adding ELOOP variable to _IGNORED_ERROS

Based on Jörg Stucke suggestion

https://bugs.python.org/issue36035

@pganssle pganssle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be best if you also added a test for this, presumably in test_pathlib.

Comment thread Lib/pathlib.py
@@ -35,7 +35,7 @@
#

# EBADF - guard agains macOS `stat` throwing EBADF

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhpas adding a comment here about ELOOP ould be helpful as this name is not transparent.

@csabella

Copy link
Copy Markdown
Contributor

Thank you for the contribution, @eamanu. I'm going to close this as a duplicate of GH-36035, since that pull request is by Jörg Stucke (the original author created in your comment) and is more complete than this PR.

@csabella csabella closed this May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants