Skip to content

Commit d8fb589

Browse files
authored
Merge pull request #35 from agoose77/patch-1
Bugfix Python 3: defining `__eq__` disables `__hash__` inheritance
2 parents 40f647c + e1fedef commit d8fb589

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rfc3986/uri.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def __new__(cls, scheme, authority, path, query, fragment,
9797
ref.encoding = encoding
9898
return ref
9999

100+
__hash__ = tuple.__hash__
101+
100102
def __eq__(self, other):
101103
"""Compare this reference to another."""
102104
other_ref = other

0 commit comments

Comments
 (0)