Invalid variable name in venv
code for symlink failure handling on Windows
#124212
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
stdlib
Python modules in the Lib dir
topic-venv
Related to the venv module
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
The
dst
variable in https://github.com/python/cpython/blob/main/Lib/venv/__init__.py#L396 should be nameddest
. Otherwise it throws theUnboundLocalError: cannot access local variable 'dst' where it is not associated with a value
.I have a PR that fixes this and also adds a test covering this code path.
This is occurring on Python 3.13 and 3.14.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
The text was updated successfully, but these errors were encountered: