]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108638: Fix stat.filemode() when _stat is missing (#108639)
authorVictor Stinner <vstinner@python.org>
Tue, 29 Aug 2023 15:46:46 +0000 (17:46 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 15:46:46 +0000 (15:46 +0000)
commitb62a76043e543fbb15cab7e9e8874a798bc600d2
tree7e3caf9f6817053aac8379da275d0d72766a6af7
parent7659128b9d7a30ddbcb063bc12e2ddb0f1f119e0
gh-108638: Fix stat.filemode() when _stat is missing (#108639)

Change the pure Python implementation of stat.filemode() for unknown
file type: use "?", as done by the _stat.filemode().

test_stat skips TestFilemodeCStat if the _stat extension is missing.
Lib/stat.py
Lib/test/test_stat.py