diff --git a/src/univers/maven.py b/src/univers/maven.py index 368437a4..717468a2 100644 --- a/src/univers/maven.py +++ b/src/univers/maven.py @@ -419,7 +419,7 @@ def __eq__(self, other): return self.__cmp__(other) == 0 def __hash__(self): - return hash(self._unparsed) + return hash(self._parsed) def __lt__(self, other): return self.__cmp__(other) < 0 @@ -492,6 +492,9 @@ def _new_list(self, l): return sublist def _normalize(self, l): + for i, item in enumerate(l): + if isinstance(item, list): + self._normalize(item) for item in l[::-1]: if not item: l.pop()