optimize-pngs_1.py 155 B

1234
  1. def file_hash(filename):
  2. '''Return hash of raw file contents'''
  3. with open(filename, 'rb') as f:
  4. return hashlib.sha256(f.read()).hexdigest()