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

Fix dropped leading characters c from constraints' packages #3250

Merged
merged 2 commits into from
Mar 24, 2024

Commits on Mar 24, 2024

  1. Fix dropped leading characters c from constraints' packages

    `lstrip` takes a set, not a string, so `.lstrip("-c ")` did not work as
    intended.
    
    Until we only support Python 3.9 or higher, we need to use a custom
    function to remove a prefix. With Python 3.9+ we can use the builtin
    `.removeprefix`.
    
    This fixes tox-dev#3247.
    jugmac00 committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    7569522 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f96ded View commit details
    Browse the repository at this point in the history