Skip to content

Commit

Permalink
Reword siphash24 warning message
Browse files Browse the repository at this point in the history
See gh-250
  • Loading branch information
inducer committed Jul 23, 2024
1 parent 38af9c3 commit 523ff36
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pytools/persistent_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@
try:
from siphash24 import siphash13 as _default_hash
except ImportError:
warn("pytools.persistent_dict: unable to import 'siphash24.siphash13', "
"falling back to hashlib.sha256", stacklevel=1)
warn("Unable to import recommended hash 'siphash24.siphash13', "
"falling back to 'hashlib.sha256'. "
"Run 'python3 -m pip install siphash24' to install "
"the recommended hash.",
stacklevel=1)
from hashlib import sha256 as _default_hash

if TYPE_CHECKING:
Expand Down

0 comments on commit 523ff36

Please sign in to comment.