py33: global name 'xrange' is not defined

Bug #1237717 reported by Kui Shi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Undecided
Wu Wenxiang

Bug Description

 22 ======================================================================
 23 FAIL: tests.test_multithreading.TestQueueFunctionManager.test_context_manager_without_error_counter
 24 tags: worker-7
 25 ----------------------------------------------------------------------
 26 Traceback (most recent call last):
 27 File "/opt/osd/python-swiftclient/tests/test_multithreading.py", line 141, in test_context_manager_without_err
    or_counter
 28 with self.qfq as input_queue:
 29 File "/opt/osd/python-swiftclient/swiftclient/multithreading.py", line 139, in __enter__
 30 for _junk in xrange(self.thread_count):
 31 NameError: global name 'xrange' is not defined

Kui Shi (skuicloud)
Changed in python-swiftclient:
assignee: nobody → Kui Shi (skuicloud)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-swiftclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/50782

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/62850

Changed in python-swiftclient:
assignee: Kui Shi (skuicloud) → Wu Wenxiang (wu-wenxiang)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-swiftclient (master)

Reviewed: https://review.openstack.org/62850
Committed: https://git.openstack.org/cgit/openstack/python-swiftclient/commit/?id=a1cf366a0b57050da05b3abde8a18bf5eee6ee32
Submitter: Jenkins
Branch: master

commit a1cf366a0b57050da05b3abde8a18bf5eee6ee32
Author: Wu Wenxiang <wu.wenxiang@99cloud.net>
Date: Wed Dec 18 19:33:58 2013 +0800

    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

Changed in python-swiftclient:
status: In Progress → Fix Committed
Tim Burke (1-tim-z)
Changed in python-swiftclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.