Skip to content

Allow more characters in passwords read from file#1806

Open
rolandwalker wants to merge 1 commit intomainfrom
RW/allow-more-characters-password-from-file
Open

Allow more characters in passwords read from file#1806
rolandwalker wants to merge 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 from 507e4c8 to 96942c0 Compare April 3, 2026 13:31
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 96942c0 to eb616aa Compare April 3, 2026 13:33
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