- Previously, `getpass.getuser()` would leak an ImportError if the USERNAME environment variable was not set on Windows because the `pwd` module cannot be imported. - Starting in Python 3.13.0a3, it only raises `OSError`. Fixes #11874
2 lines
69 B
ReStructuredText
2 lines
69 B
ReStructuredText
Correctly handle errors from :func:`getpass.getuser` in Python 3.13.
|