(self, other)
| 560 | return hash(s) |
| 561 | |
| 562 | def __eq__(self, other): |
| 563 | s1 = os.fspath(self) |
| 564 | try: |
| 565 | s2 = os.fspath(other) |
| 566 | except TypeError: |
| 567 | return False |
| 568 | if iswin32: |
| 569 | s1 = s1.lower() |
| 570 | try: |
| 571 | s2 = s2.lower() |
| 572 | except AttributeError: |
| 573 | return False |
| 574 | return s1 == s2 |
| 575 | |
| 576 | def __ne__(self, other): |
| 577 | return not (self == other) |