diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-11 23:41:40 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-11 23:41:40 +0100 |
commit | b692dc0ba8e8940844eb647a1f15e435a55ce4eb (patch) | |
tree | 1653344e5b37504894fe2c2e226f9d8d094bd3bb /module/network/HTTPChunk.py | |
parent | fixed DepositFile free (diff) | |
download | pyload-b692dc0ba8e8940844eb647a1f15e435a55ce4eb.tar.xz |
Diffstat (limited to 'module/network/HTTPChunk.py')
-rw-r--r-- | module/network/HTTPChunk.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 9ca1be909..2fc48a588 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -36,6 +36,13 @@ class ChunkInfo(): self.resume = False self.chunks = [] + def __repr__(self): + ret = "ChunkInfo: %s, %s\n" % (self.name, self.size) + for i, c in enumerate(self.chunks): + ret += "%s# %s\n" % (i, c[1]) + + return ret + def setSize(self, size): self.size = int(size) |