提交 bba5b806 编写于 作者: C Cleber Rosa

avocado/core/mux.py: use hashlib for Python 3 support

hashlib works in both Python 2.7 and 3, so it's the way to go here.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 035918c4
......@@ -22,9 +22,9 @@ a custom Varianter plugin.
#
import collections
import hashlib
import itertools
import re
import sha
from . import output
from . import tree
......@@ -172,7 +172,7 @@ class MuxPlugin(object):
variant.sort(key=lambda x: x.path)
fingerprint = "-".join(_.fingerprint() for _ in variant)
variant_ids.append("-".join(node.name for node in variant) + '-' +
sha.sha(fingerprint).hexdigest()[:4])
hashlib.sha1(fingerprint).hexdigest()[:4])
return variant_ids
def __iter__(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册