未验证 提交 43996a7d 编写于 作者: L Lukáš Doktor

Merging pull request 2600

Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>

* https://github.com/avocado-framework/avocado:
  Python 3: fix re.findall() using string pattern on a bytes-like object
......@@ -408,7 +408,7 @@ class YumBackend(RpmBackend):
y_cmd = executable + ' --version | head -1'
cmd_result = process.run(y_cmd, ignore_status=True,
verbose=False, shell=True)
out = cmd_result.stdout.strip()
out = cmd_result.stdout_text.strip()
try:
ver = re.findall(r'\d*.\d*.\d*', out)[0]
except IndexError:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册