Signed-off-by: Manjusaka <me@manjusaka.me>
This commit is contained in:
Manjusaka 2025-09-08 21:44:12 +08:00
parent 6f9b72db2b
commit eff160a69b
No known key found for this signature in database
GPG key ID: 878F445D9C6CE65E

View file

@ -214,6 +214,8 @@ def __hash__(self):
hash_data = [self._drv + self._root] + self._tail
elif self._tail and self.parser.splitdrive(self._tail[0])[0]:
hash_data = ['.'] + self._tail
if self.parser is not posixpath:
hash_data = [part.lower() for part in hash_data]
self._hash = hash(tuple(hash_data))
return self._hash