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
|
: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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user