Skip to content

Allow more characters in passwords read from file#1806

Merged
rolandwalker merged 1 commit intomainfrom
RW/allow-more-characters-password-from-file
Apr 4, 2026
Merged

Allow more characters in passwords read from file#1806
rolandwalker merged 1 commit intomainfrom
RW/allow-more-characters-password-from-file

Conversation

@rolandwalker
Copy link
Copy Markdown
Contributor

@rolandwalker rolandwalker commented Apr 3, 2026

Description

strip() with no argument would mean that a password read from a file could not contain a leading space. While that is unusual, it is also true that in such an edge case, the use of the password file would be more likely to manage the weird string.

removesuffix('\n') should be the most targeted possible cleanup.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

@rolandwalker rolandwalker self-assigned this Apr 3, 2026
@rolandwalker rolandwalker force-pushed the RW/allow-more-characters-password-from-file branch 2 times, most recently from 96942c0 to eb616aa Compare April 3, 2026 13:33
strip() with no arguments would mean that a password read from a file
could not contain a leading space.  While that is unusual, it is also
true that in such an edge case, the use of the password file would be
more likely to manage the weird string.

removesuffix('\n') should be the most targeted possible cleanup.
@rolandwalker rolandwalker force-pushed the RW/allow-more-characters-password-from-file branch from eb616aa to fcaedce Compare April 4, 2026 12:42
@rolandwalker rolandwalker merged commit 27cd454 into main Apr 4, 2026
8 checks passed
@rolandwalker rolandwalker deleted the RW/allow-more-characters-password-from-file branch April 4, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant