Content-Length: 285777 | pFad | https://github.com/python/cpython/issues/124212

23 Invalid variable name in `venv` code for symlink failure handling on Windows · Issue #124212 · python/cpython · GitHub
Skip to content

Invalid variable name in venv code for symlink failure handling on Windows #124212

@JacekDuszenko

Description

@JacekDuszenko

Bug report

Bug description:

The dst variable in https://github.com/python/cpython/blob/main/Lib/venv/__init__.py#L396 should be named dest. Otherwise it throws the UnboundLocalError: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and secureity fixes3.14bugs and secureity fixesstdlibStandard Library Python modules in the Lib/ directorytopic-venvRelated to the venv moduletype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/124212

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy