Fix bug:range() is not same in py3.x and py2.x

in python3.x, there is no method named xrange(),
it has replaced by range(),which is equal to xrange() in python2.x.
so we must fix this issue.we use six module to fix this issue.

Change-Id: I9cee3f0df2d8abbf6f66d7c5a3a0fed98df622e8
Closes-Bug: #1268439
This commit is contained in:
lizheming
2014-01-17 11:58:42 +08:00
parent e17a90347d
commit 42683e1784
24 changed files with 25 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
# limitations under the License.
from oslo.config import cfg
from six.moves import xrange
import testtools
from testtools import matchers