Skip to content

Commit

Permalink
Merge pull request #10 from connorjward/fix-new-hash-deprecation
Browse files Browse the repository at this point in the history
Fix new_hash deprecation
  • Loading branch information
dham authored Dec 15, 2020
2 parents 4f2b394 + 4269429 commit cbbdc7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loopy/kernel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,8 +1518,8 @@ def __setstate__(self, state):

def __hash__(self):
from loopy.tools import LoopyKeyBuilder
from pytools.persistent_dict import new_hash
key_hash = new_hash()
from hashlib import sha256
key_hash = sha256()
self.update_persistent_hash(key_hash, LoopyKeyBuilder())
return hash(key_hash.digest())

Expand Down

0 comments on commit cbbdc7e

Please sign in to comment.