unrelated: fix some warnings and redundant elements

This commit is contained in:
David-Wobrock authored and David Wobrock committed 2019-02-24 15:55:05 +01:00
1 parent 5c7dab8db2
commit 999ee2fa5e
3 files changed
+8 -7

No files matched your search

+2 -1
View File
@@ -42,7 +42,8 @@ class Cache(dict):
with open(self.filename, "wb") as f:
pickle.dump(self, f, protocol=2)
def md5(self, path):
@staticmethod
def md5(path):
hash_md5 = hashlib.md5()
with open(path, "rb") as f:
for chunk in iter(lambda: f.read(4096), b""):