From b692dc0ba8e8940844eb647a1f15e435a55ce4eb Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 11 Mar 2011 23:41:40 +0100 Subject: closed #259, #250 --- module/network/HTTPChunk.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'module/network/HTTPChunk.py') 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) -- cgit v1.2.3