summaryrefslogtreecommitdiff
path: root/swiftclient/multithreading.py
diff options
context:
space:
mode:
authorWu Wenxiang <wu.wenxiang@99cloud.net>2013-12-18 19:33:58 +0800
committerWu Wenxiang <wu.wenxiang@99cloud.net>2014-01-14 21:49:44 +0800
commita1cf366a0b57050da05b3abde8a18bf5eee6ee32 (patch)
treec8d2f9c8202e1b709ed75fd49443ba33505e122b /swiftclient/multithreading.py
parent20cd3402b2f74bc0a29de8402a2b4cfac3ad61b3 (diff)
downloadpython-swiftclient-a1cf366a0b57050da05b3abde8a18bf5eee6ee32.tar.gz
Replace xrange in for loop with range
xrange is not supported in python 3, so replace it with range since no large size lists involved. Closes-Bug: #1237717 Change-Id: I4e5e0782153d32c8beee03f7d871722ed4352859
Diffstat (limited to 'swiftclient/multithreading.py')
-rw-r--r--swiftclient/multithreading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftclient/multithreading.py b/swiftclient/multithreading.py
index 512c6e1..cd3c57c 100644
--- a/swiftclient/multithreading.py
+++ b/swiftclient/multithreading.py
@@ -135,7 +135,7 @@ class QueueFunctionManager(object):
self.thread_kwargs = thread_kwargs if thread_kwargs else {}
def __enter__(self):
- for _junk in xrange(self.thread_count):
+ for _junk in range(self.thread_count):
if self.connection_maker:
thread_args = (self.connection_maker(),) + self.thread_args
else: