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 1a4b30b commit fcc083e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/autowig/asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def hash(self):
return str(uuid.uuid5(uuid.NAMESPACE_X500, self._node)).replace('-', '')

def __hash__(self):
return int(uuid.uuid5(uuid.NAMESPACE_X500, self._node).get_hex(), 16)
return int(uuid.uuid5(uuid.NAMESPACE_X500, self._node).hex, 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 fcc083e

Please sign in to comment.