Skip to content

Use submodule_search_locations correctly #180

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

Merged
merged 1 commit into from
Aug 19, 2025

Conversation

AA-Turner
Copy link
Contributor

cc @miketheman (my flight's been delayed!)

submodule_search_locations can be None, which is interpreted by pkgutil.walk_packages() as 'all top-level modules on sys.path'. This is not the desired behaviour.

Instead of trying to be clever with try/except, we now use an explicit is not None check.

A

@AA-Turner
Copy link
Contributor Author

A test run on my fork passes and creates no PRs, which is expected: https://github.com/AA-Turner/stdlib-list/actions/runs/17075159971

Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

Nice, thank you @AA-Turner!

@woodruffw woodruffw merged commit fb4256e into pypi:main Aug 19, 2025
10 checks passed
@AA-Turner AA-Turner deleted the fix-walk-modules branch August 19, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants