Skip to content

Use sys.stdlib_module_names for is_standard_module#1

Open
yassinkortam wants to merge 1 commit into
test/swe-bench-basefrom
codex/replace-modutils.is_standard_module()-with-sys.stdlib_module
Open

Use sys.stdlib_module_names for is_standard_module#1
yassinkortam wants to merge 1 commit into
test/swe-bench-basefrom
codex/replace-modutils.is_standard_module()-with-sys.stdlib_module

Conversation

@yassinkortam
Copy link
Copy Markdown
Owner

Summary

  • use sys.stdlib_module_names with a shim for Python <3.10
  • add PY312_PLUS constant for Python 3.12 support

Testing

  • pytest tests/test_modutils.py -k 'StandardLibModuleTest and not import_dotted_library' -q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant