diff options
author | 2015-04-19 18:03:46 +0200 | |
---|---|---|
committer | 2015-04-19 18:03:46 +0200 | |
commit | e1c22fad3fffb485da400e4b34c094f201a2c72e (patch) | |
tree | d360610cdf65e2f1906d3cc9c891f6b80066859d /pyload/network/HTTPChunk.py | |
parent | PEP-8, Python Zen, refactor and reduce code (part 7 in master module/database) (diff) | |
download | pyload-e1c22fad3fffb485da400e4b34c094f201a2c72e.tar.xz |
range -> xrange
Diffstat (limited to 'pyload/network/HTTPChunk.py')
-rw-r--r-- | pyload/network/HTTPChunk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/network/HTTPChunk.py b/pyload/network/HTTPChunk.py index 784b64349..aaf29355e 100644 --- a/pyload/network/HTTPChunk.py +++ b/pyload/network/HTTPChunk.py @@ -51,7 +51,7 @@ class ChunkInfo(object): chunk_size = self.size / chunks current = 0 - for i in range(chunks): + for i in xrange(chunks): end = self.size - 1 if (i == chunks - 1) else current + chunk_size self.addChunk("%s.chunk%s" % (self.name, i), (current, end)) current += chunk_size + 1 |