py3: hashlib .hexdigest() always returns a hexadecimal string

This is a subset of ascii and cannot be decoded.
This commit is contained in:
Eli Schwartz
2019-05-09 07:10:06 -04:00
parent 9bc4d1d375
commit aa44bf1cd1
+1 -1
View File
@@ -50,7 +50,7 @@ def books_cache_dir():
def book_hash(library_uuid, book_id, fmt, size, mtime):
raw = json_dumps((library_uuid, book_id, fmt.upper(), size, mtime, RENDER_VERSION))
return sha1(raw).hexdigest().decode('ascii')
return sha1(raw).hexdigest()
staging_cleaned = False