OrderedDict can be constructed directly from dict instance
Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I7a49a8e4cc45076de090d979eabc4fef7fb0f043
This commit is contained in:
parent
a0db6e4892
commit
4b9dff2671
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user