diff options
author | Helmut Grohne <helmut@subdivi.de> | 2015-04-16 17:47:20 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2015-04-16 17:47:20 +0200 |
commit | 7857b42f38099b2ea4556c71ef19d80a8dbd0ed5 (patch) | |
tree | 018790dd30b689b44ca0c72c02581065a1c7c533 /dedup | |
parent | ff6ed4554a712bab5c93d15f1c556bed9df9632d (diff) | |
download | debian-dedup-7857b42f38099b2ea4556c71ef19d80a8dbd0ed5.tar.gz |
element access on bytes yields int in py3k
Diffstat (limited to 'dedup')
-rw-r--r-- | dedup/compression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dedup/compression.py b/dedup/compression.py index cc65bbf..4fd7320 100644 --- a/dedup/compression.py +++ b/dedup/compression.py @@ -35,7 +35,7 @@ class GzipDecompressor(object): return b"" if not self.inbuffer.startswith(b"\037\213\010"): raise ValueError("gzip magic not found") - flag = ord(self.inbuffer[3]) + flag = ord(self.inbuffer[3:4]) if flag & 4: if len(self.inbuffer) < skip + 2: return b"" |