Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not skipping all dot directories #11666

Closed
AryazE opened this issue Sep 1, 2023 · 0 comments · Fixed by #11667
Closed

Not skipping all dot directories #11666

AryazE opened this issue Sep 1, 2023 · 0 comments · Fixed by #11667

Comments

@AryazE
Copy link
Contributor

AryazE commented Sep 1, 2023

Describe the bug

In this loop, if there are at least 2 directories that start with . and are adjacent in the dirnames list, then one of the is not skipped. This happens because the dirnames.remove(dirname) changes the list it is iterating on.

How to Reproduce

Just having two directories like .dotdir1 and .dotdir2 should trigger this problem.

Environment Information

Platform:              linux; (Linux-5.19.0-46-generic-x86_64-with-glibc2.35)
Python version:        3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0])
Python implementation: CPython
Sphinx version:        7.2.5
Docutils version:      0.20.1
Jinja2 version:        3.1.2
Pygments version:      2.16.1

Sphinx extensions

No response

Additional context

No response

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants