]> 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:15:51 +0000 (08:15 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 15:15:51 +0000 (17:15 +0200)
commitdebb751f11f5221eafcdf07a14c7e9408350ad9a
treef16a35c1de60d5a71fb1f1972f01121052aa0c1a
parent1b82dc1a61f72132c5f6d8c4135e5f522bda316b
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (#27422)

`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]