From fe5db799d736d7dabd2504a291bb9fd6f8b7157f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 22 Mar 2019 04:01:55 +0300 Subject: [PATCH] minor update to bring up a legacy script to modern spec... Signed-off-by: Alex A. Naanou --- buildcache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildcache.py b/buildcache.py index 4eb05c0b..5f3dd2e3 100755 --- a/buildcache.py +++ b/buildcache.py @@ -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---