gh-76912: Raise OSError from any failure in getpass.getuser() (#29739)
* bpo-32731: Raise OSError from any failure in getpass.getuser() Previously, if the username was not set in certain environment variables, ImportError escaped on Windows systems, and it was possible for KeyError to escape on other systems if getpwuid() failed.
J
Jacob Walls committed
99a73c3465a45fe57cac01a917fc50e0743b5964
Parent: 936c503
Committed by GitHub <noreply@github.com>
on 11/27/2023, 6:05:55 PM