From 621e4e5ed5783339973351aed5c0b08c22936c55 Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Thu, 16 Apr 2015 17:43:11 +0200
Subject: distinguish bytes from unicode for py3k

---
 dedup/image.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'dedup/image.py')

diff --git a/dedup/image.py b/dedup/image.py
index ef17989..314eb44 100644
--- a/dedup/image.py
+++ b/dedup/image.py
@@ -91,7 +91,7 @@ class GIFHash(ImageHash):
         if self.content.tell() < 10: # magic + logical dimension
             return False
         curvalue = self.content.getvalue()
-        if curvalue.startswith((b"GIF87a", "GIF89a")):
+        if curvalue.startswith((b"GIF87a", b"GIF89a")):
             width, height = struct.unpack("<HH", curvalue[6:10])
             if width * height > self.maxpixels:
                 raise ValueError("maximum image pixels exceeded")
-- 
cgit v1.2.3