]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698)
authorBarney Gale <barney.gale@gmail.com>
Wed, 28 Jul 2021 14:28:14 +0000 (15:28 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 14:28:14 +0000 (16:28 +0200)
commit56c1f6d7edad454f382d3ecb8cdcff24ac898a50
tree7ce6f980220018d0519934684487c737efb1306a
parent531e2fbc52ce07a9cf37e0db05a5337e404dfccd
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698)

`pathlib.PureWindowsPath.is_reserved()` now identifies as reserved
filenames with trailing spaces or colons.

Co-authored-by: Barney Gale <barney.gale@foundry.com>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2021-06-12-21-25-35.bpo-27827.TMWh1i.rst [new file with mode: 0644]