/usr/lib/python2.7/dist-packages/foolscap/hashutil.py is in python-foolscap 0.6.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | # this file will go away when we finally drop python2.4 support
try:
import hashlib
sha1_hasher = hashlib.sha1
md5_hasher = hashlib.md5 # only used for session IDs in sslverify.py
except ImportError:
import sha
import md5
sha1_hasher = sha.new
md5_hasher = md5.new
|