tests: Fix compatibility with Python3

xrange was renamed to range in Python3.
This commit is contained in:
Marian Csontos 2022-06-24 14:44:10 +02:00
parent 126554fe2a
commit 99369c4f67
1 changed files with 1 additions and 1 deletions

View File

@ -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)