docs: def _sha1_for_file(filename):
      """Return sha1 for contents of filename."""
      with open(filename, "rb") as fileobj:
          contents = fileobj.read()
          return hashlib.sha1(contents).hexdigest()