Skip to content

Commit

Permalink
Update hash for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Sep 5, 2017
1 parent dca4c3b commit 138fcaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py/autowig/asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def hash(self):
return str(uuid.uuid5(uuid.NAMESPACE_X500, self._node)).replace('-', '')

def __hash__(self):
return self.hash
return int(uuid.uuid5(uuid.NAMESPACE_X500, self._node).hexdigest(), 16)

def __dir__(self):
return sorted([key for key in self._asg._nodes[self._node].keys()] + [key for key in dir(self.__class__)])

Expand Down

0 comments on commit 138fcaf

Please sign in to comment.