1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
3
# You can obtain one at http://mozilla.org/MPL/2.0/.
5
# This file contains miscellaneous utility functions that don't belong anywhere
12
"""Hashes a file specified by the path given and returns the hex digest."""
14
# If the hashing function changes, this may invalidate lots of cached data.
15
# Don't change it lightly.
18
with open(path, 'rb') as fh: