Commit bbed6b9f authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[py3] Add a __hash__ method to unicode_with_language

parent 0b1ae01e61de
......@@ -46,6 +46,9 @@ class unicode_with_language(text_type): # pylint: disable=invalid-name
def __ne__(self, other):
return not self == other
def __hash__(self):
return hash((text_type(self), self.lang))
def normalize_uri(uri, prefixes, raise_on_error=False):
"""Normalize uri by attempting to substitute prefix by the associated namespace. Returns the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment