From cfbd5353cffb1ff5ba0de4545abd8a12f0dad919 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 18 Oct 2018 08:06:57 +1100 Subject: Revert "Hash file for cache filename" --- pywal/util.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'pywal/util.py') diff --git a/pywal/util.py b/pywal/util.py index 10fb42c..0557cc4 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -2,7 +2,6 @@ Misc helper functions. """ import colorsys -import hashlib import json import logging import os @@ -179,14 +178,3 @@ def get_pid(name): return False return True - - -def hashf(fpath): - """Get the md5 hash of a file.""" - return hashlib.md5(file_bytes(open(fpath, 'rb'))).hexdigest() - - -def file_bytes(fpath): - """Helper function to read file.""" - with fpath: - return fpath.read() -- cgit v1.2.3