mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: hashlib .hexdigest() always returns a hexadecimal string
This is a subset of ascii and cannot be decoded.
This commit is contained in:
parent
9bc4d1d375
commit
aa44bf1cd1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user