OrderedDict can be constructed directly from dict instance

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I7a49a8e4cc45076de090d979eabc4fef7fb0f043
This commit is contained in:
Jiri Podivin 2021-01-22 15:36:21 +01:00
parent a0db6e4892
commit 4b9dff2671

View File

@ -252,8 +252,7 @@ class Validation(object):
:return: An `OrderedDict` with the full data of a validation :return: An `OrderedDict` with the full data of a validation
:rtype: `OrderedDict` :rtype: `OrderedDict`
""" """
data = OrderedDict() data = OrderedDict(self.dict)
data.update(self.dict)
return data return data
@property @property