summaryrefslogtreecommitdiffstats
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r--Lib/pathlib.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index 4368eba..4d89436 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -114,10 +114,7 @@ class _WindowsFlavour(_Flavour):
is_supported = (os.name == 'nt')
- drive_letters = (
- set(chr(x) for x in range(ord('a'), ord('z') + 1)) |
- set(chr(x) for x in range(ord('A'), ord('Z') + 1))
- )
+ drive_letters = set('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
ext_namespace_prefix = '\\\\?\\'
reserved_names = (