Skip to content

cleanup: remove dead Python <3.9 fallback in MBInstalledPackages#46

Merged
alubbock merged 1 commit intomainfrom
cleanup/remove-py39-fallback
Mar 13, 2026
Merged

cleanup: remove dead Python <3.9 fallback in MBInstalledPackages#46
alubbock merged 1 commit intomainfrom
cleanup/remove-py39-fallback

Conversation

@alubbock
Copy link
Copy Markdown
Owner

Summary

  • Removed try/except AttributeError fallback for pkg.name in MBInstalledPackages.capture_packages
  • This code path could never execute since requires-python = ">=3.10" and pkg.name has been available since Python 3.9

Test plan

  • test_capture_packages_importlib passes

requires-python >= 3.10 means the pkg.metadata['Name'] fallback
for AttributeError on pkg.name can never execute.
@alubbock alubbock merged commit a63e301 into main Mar 13, 2026
20 checks passed
@alubbock alubbock deleted the cleanup/remove-py39-fallback branch March 13, 2026 10:32
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.

1 participant