Skip to content

Remove obsolete __future__ imports#2647

Merged
sentrivana merged 5 commits into
sentry-sdk-2.0from
ivana/py2.7/remove-future-imports
Jan 18, 2024
Merged

Remove obsolete __future__ imports#2647
sentrivana merged 5 commits into
sentry-sdk-2.0from
ivana/py2.7/remove-future-imports

Conversation

@sentrivana

@sentrivana sentrivana commented Jan 16, 2024

Copy link
Copy Markdown
Contributor

The future is now ✨

This PR removes __future__ imports that introduce behavior changes that are already the default in Python 3.6+. See https://docs.python.org/3.12/library/__future__.html for the current status of the available __future__ imports.

Left one __future__ import intact: annotations still needs to be imported.


General Notes

Thank you for contributing to sentry-python!

Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval. Some tests (AWS Lambda) additionally require a maintainer to add a special label to run and will fail if the label is not present.

For maintainers

Sensitive test suites require maintainer review to ensure that tests do not compromise our secrets. This review must be repeated after any code revisions.

Before running sensitive test suites, please carefully check the PR. Then, apply the Trigger: tests using secrets label. The label will be removed after any code changes to enforce our policy requiring maintainers to review all code revisions before running sensitive tests.

@sentrivana sentrivana changed the title Remove obsolete __future__ imports Remove obsolete __future__ imports Jan 16, 2024
@sentrivana
sentrivana marked this pull request as ready for review January 16, 2024 13:37
@sentrivana sentrivana self-assigned this Jan 16, 2024

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Indeed, the future is now

@sentrivana
sentrivana enabled auto-merge (squash) January 18, 2024 11:20
@sentrivana
sentrivana merged commit 6ec6973 into sentry-sdk-2.0 Jan 18, 2024
@sentrivana
sentrivana deleted the ivana/py2.7/remove-future-imports branch January 18, 2024 11:38
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.

2 participants