]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Jul 2021 15:01:47 +0000 (08:01 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 15:01:47 +0000 (17:01 +0200)
commit8789add99164177f29a8cd319a834187c65ab16c
tree5742ba7bf0e827d2b497a64f2f8d9ed19a42ad8d
parenta90a57ed533fc775cb74b57b420913fb5de10d09
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (GH-27421)

`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>
(cherry picked from commit 56c1f6d7edad454f382d3ecb8cdcff24ac898a50)
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]