gh-138514: getpass: restrict `echo_char` to a single ASCII character (#138591)
This amends commit bf8bbe9a813dd9fc2dd14be06df172b7d26ca1af by restricting `echo_char` in `getpass.getpass` to single printable ASCII characters as it would be uncommon to use long strings or multi-byte characters for keyboard feedback. --------- Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
B
Benjamin Johnson committed
ab6893ab5c04fecf71c94f7d65527df124155df5
Parent: 9a8bc6d
Committed by GitHub <noreply@github.com>
on 9/16/2025, 2:21:55 PM