From 20802a8bdd02d076364fbe7c32dec300b13d9baa Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 8 Jan 2011 15:26:40 +0100 Subject: py 2.5 compability --- module/network/HTTPChunk.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'module/network/HTTPChunk.py') diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 07012d072..f66121880 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -180,8 +180,7 @@ class HTTPChunk(HTTPRequest): #ignore BOM, it confuses unrar if not self.BOMChecked: - byte = bytearray(buf[:3]) - if tuple(byte) == (239,187,191): + if [ord(b) for b in buf[:3]] == [239,187,191]: buf = buf[3:] self.BOMChecked = True -- cgit v1.2.3