plugin XEP-0231, XEP-0264: fixed some remaining encoding issue following Python 3 port
This commit is contained in:
parent
abbd14484b
commit
234bbcbdd5
1 changed files with 8 additions and 5 deletions
|
|
@ -131,7 +131,7 @@ class XEP_0264(object):
|
|||
@param size(tuple(int)): requested size of thumbnail
|
||||
@return (unicode): unique id for this image/size
|
||||
"""
|
||||
return hashlib.sha256(repr((image_uid, size))).hexdigest()
|
||||
return hashlib.sha256(repr((image_uid, size)).encode()).hexdigest()
|
||||
|
||||
def _blockingGenThumb(self, source_path, size=None, max_age=None, image_uid=None):
|
||||
"""Generate a thumbnail for image
|
||||
|
|
|
|||
Loading…
Reference in a new issue