Skip to content

Commit

Permalink
Update Lib/ntpath.py
Browse files Browse the repository at this point in the history
Co-authored-by: Eryk Sun <[email protected]>
  • Loading branch information
barneygale and eryksun authored Jan 8, 2024
1 parent 3fbef57 commit 4b34274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/ntpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ def _isreservedname(name):
# Trailing dots and spaces are reserved.
if name.endswith(('.', ' ')) and name not in ('.', '..'):
return True
# The wildcard characters, colon, and pipe (*?"<>:|) are reserved.
# Wildcards, separators, colon, and pipe (*?"<>/\:|) are reserved.
# ASCII control characters (0-31) are reserved.
# Colon is reserved for file streams (e.g. "name:stream[:type]").
if _reserved_chars.intersection(name):
return True
Expand Down

0 comments on commit 4b34274

Please sign in to comment.