summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-08 15:26:40 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-08 15:26:40 +0100
commit20802a8bdd02d076364fbe7c32dec300b13d9baa (patch)
tree966c3f3bcbf792d449295660da4368a94d7d0941 /module
parentadded check to remove byte order mark (fixes fileserv) (diff)
downloadpyload-20802a8bdd02d076364fbe7c32dec300b13d9baa.tar.xz
py 2.5 compability
Diffstat (limited to 'module')
-rw-r--r--module/network/HTTPChunk.py3
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