]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100176: venv: Remove redundant compat code for Python <= 3.2 (#100177)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Wed, 14 Dec 2022 11:37:11 +0000 (13:37 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Dec 2022 11:37:11 +0000 (11:37 +0000)
commit3192c00a3cf136e06592d9a14d4d7b82412da4de
tree0205879580c14c39eef25716c388c147dca94ff0
parent6997e77bdf2297375962aaf82876da4e7ecdd61a
gh-100176: venv: Remove redundant compat code for Python <= 3.2 (#100177)

gh-100176: Remove redundant compat code for Python 3.2 and older

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.
Doc/library/venv.rst
Lib/venv/__init__.py