minor update to bring up a legacy script to modern spec...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-03-22 04:01:55 +03:00
parent 7d85cfb0e0
commit fe5db799d7

View File

@ -2,7 +2,7 @@
#=======================================================================
__version__ = '''0.0.01'''
__sub_version__ = '''20140814025456'''
__sub_version__ = '''20190322031416'''
__copyright__ = '''(c) Alex A. Naanou 2011'''
@ -205,7 +205,7 @@ def hash_gid(img, force=False):
'''
if type(img) in (str, unicode):
img = Image.open(img)
return sha.sha(img.tostring()).hexdigest()
return sha.sha(img.tobytes()).hexdigest()
#-----------------------------------------------------report_progress---