]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109033: Return filename with os.utime errors (#109034)
authorRonan Pigott <ronan@rjp.ie>
Tue, 19 Sep 2023 23:18:23 +0000 (16:18 -0700)
committerGitHub <noreply@github.com>
Tue, 19 Sep 2023 23:18:23 +0000 (01:18 +0200)
commitddf2e953c27d529b7e321c972ede2afce5dfb0b0
tree4b26a45749135b495b76e754578c7c6b7b1a9297
parentfd7e08a6f35581e1189b9bf12feb51f7167a86c5
gh-109033: Return filename with os.utime errors (#109034)

The filename was previously intentionally omitted from exception because
"it might confuse the user". Uncaught exceptions are not generally a
replacement for user-facing error messages, so obscuring this
information only has the effect of making the programmer's life more
difficult.
Lib/test/test_os.py
Misc/NEWS.d/next/Library/2023-09-06-14-47-28.gh-issue-109033.piUzDx.rst [new file with mode: 0644]
Modules/posixmodule.c