提交 cde8c494 编写于 作者: L Lukáš Doktor

tree: Make sure the set is always sorted

We use the __str__ to generate fingerprint and re-ordering the set leads
to different fingerprints.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 d0fb1f15
......@@ -59,7 +59,8 @@ class FilterSet(set):
for item in items])
def __str__(self):
return 'FilterSet([%s])' % ', '.join(["'%s'" % i for i in self])
return ('FilterSet([%s])'
% ', '.join(sorted(["'%s'" % i for i in self])))
class TreeEnvironment(dict):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册