Skip to content

Move compatibility modules into a compat package.#4212

Merged
jaraco merged 3 commits into
mainfrom
refactor/compat-module
Feb 8, 2024
Merged

Move compatibility modules into a compat package.#4212
jaraco merged 3 commits into
mainfrom
refactor/compat-module

Conversation

@jaraco

@jaraco jaraco commented Feb 8, 2024

Copy link
Copy Markdown
Member
  • Create compat module.
  • Move Python 3.10 compatibility into compat module.
  • Move Python 3.11 compatibility into compat module.

Summary of changes

Note that the names of the modules change to reflect the version of Python that requires the legacy behavior, e.g. "py310" to support compatibility with Python 3.10 and earlier. I find this naming works better because it signals when that code can be removed. For example, when Python 3.10 support is dropped, the module "py310" will stick out as removable debt.

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