unrelated: fix some warnings and redundant elements
This commit is contained in:
1 parent
5c7dab8db2
commit
999ee2fa5e
3 files changed
+8
-7
No files matched your search
@@ -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""):
|
||||
|
||||
Reference in new issue
Block a user