Browse Source
bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698)
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>pull/27423/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 19 deletions
-
32Lib/pathlib.py
-
32Lib/test/test_pathlib.py
-
2Misc/NEWS.d/next/Library/2021-06-12-21-25-35.bpo-27827.TMWh1i.rst
@ -0,0 +1,2 @@ |
|||
:meth:`pathlib.PureWindowsPath.is_reserved` now identifies a greater range of |
|||
reserved filenames, including those with trailing spaces or colons. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue