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
1 changed files with 1 additions and 2 deletions

View File

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