We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f9b72d commit eff160aCopy full SHA for eff160a
1 file changed
Lib/pathlib/__init__.py
@@ -214,6 +214,8 @@ def __hash__(self):
214
hash_data = [self._drv + self._root] + self._tail
215
elif self._tail and self.parser.splitdrive(self._tail[0])[0]:
216
hash_data = ['.'] + self._tail
217
+ if self.parser is not posixpath:
218
+ hash_data = [part.lower() for part in hash_data]
219
self._hash = hash(tuple(hash_data))
220
return self._hash
221
0 commit comments