summaryrefslogtreecommitdiff
path: root/dedup/image.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2015-04-16 17:43:11 +0200
committerHelmut Grohne <helmut@subdivi.de>2015-04-16 17:43:11 +0200
commit621e4e5ed5783339973351aed5c0b08c22936c55 (patch)
tree92cd8b8e739be85986e65c27ea71714032b45cf4 /dedup/image.py
parent2a728ab85e1ddfeec03514f86f706c116ca94440 (diff)
downloaddebian-dedup-621e4e5ed5783339973351aed5c0b08c22936c55.tar.gz
distinguish bytes from unicode for py3k
Diffstat (limited to 'dedup/image.py')
-rw-r--r--dedup/image.py2
1 files changed, 1 insertions, 1 deletions
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")