tests: Fix compatibility with Python3
xrange was renamed to range in Python3.
This commit is contained in:
parent
126554fe2a
commit
99369c4f67
@ -1280,7 +1280,7 @@ class LVM:
|
||||
_print("WARN: (%s) does not match lvs output format" % lv)
|
||||
continue
|
||||
lv_info_dict = {}
|
||||
for index in xrange(len(param_names)):
|
||||
for index in range(len(param_names)):
|
||||
lv_info_dict[param_names[index]] = m.group(index + 1)
|
||||
lv_list.append(lv_info_dict)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user