Merge "OrderedDict can be constructed directly from dict instance"

This commit is contained in:
Zuul 2021-02-02 23:40:25 +00:00 committed by Gerrit Code Review
commit f47226349a

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