From 99369c4f67d2cf714971426338feba91d1087cba Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Fri, 24 Jun 2022 14:44:10 +0200 Subject: [PATCH] tests: Fix compatibility with Python3 xrange was renamed to range in Python3. --- tests/functions_test/dmpd_library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functions_test/dmpd_library.py b/tests/functions_test/dmpd_library.py index d50d08f..04286f4 100755 --- a/tests/functions_test/dmpd_library.py +++ b/tests/functions_test/dmpd_library.py @@ -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)