Skip to content
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

gh-100176: venv: Remove redundant compat code for Python <= 3.2 #100177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Dec 11, 2022

Python 3.2 has been EOL since 2016-02-20 and 2.7 since 2020-01-01, so we can remove this old compatibility check and unindent the old else block.

https://devguide.python.org/versions/

In the unindented block, replace a .format() call with an f-string.

And similar changes in the documentation.

Finally, some whitespace adjustments, can drop these if you wish.

Does this need a news file?

Python 3.2 has been EOL since 2016-02-20 and 2.7 since 2020-01-01, so we
can remove this old compatibility check and unindent the old else-block.

Also, in the unindented block, replace a .format() call with an f-string.

Plus similar changes in the documentation.
@netlify
Copy link

netlify bot commented Dec 11, 2022

Deploy Preview for python-cpython-preview ready!

Name Link
🔨 Latest commit 6525040
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/6396463b58d938000820a50c
😎 Deploy Preview https://deploy-preview-100177--python-cpython-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@hugovk hugovk changed the title gh-100176: venv: Remove redundant compat code for Python 3.2 and older gh-100176: venv: Remove redundant compat code for Python <= 3.2 Dec 12, 2022
vsajip
vsajip approved these changes Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants