Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/univers/maven.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down