diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-08 15:26:40 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-08 15:26:40 +0100 |
commit | 20802a8bdd02d076364fbe7c32dec300b13d9baa (patch) | |
tree | 966c3f3bcbf792d449295660da4368a94d7d0941 | |
parent | added check to remove byte order mark (fixes fileserv) (diff) | |
download | pyload-20802a8bdd02d076364fbe7c32dec300b13d9baa.tar.xz |
py 2.5 compability
-rw-r--r-- | module/network/HTTPChunk.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |