I added support for NormalizedDict to sprint_varx in gen_print.py.
Change-Id: I311454288f83ca23f7ca169ad3a3f28cafdf4353
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_print.py b/lib/gen_print.py
index e08c4e7..63bef89 100755
--- a/lib/gen_print.py
+++ b/lib/gen_print.py
@@ -19,6 +19,7 @@
try:
from robot.utils import DotDict
+ from robot.utils import NormalizedDict
except ImportError:
pass
@@ -611,18 +612,21 @@
type_is_dict = 0
if type(var_value) is dict:
type_is_dict = 1
- if not type_is_dict:
- try:
- if type(var_value) is collections.OrderedDict:
- type_is_dict = 1
- except AttributeError:
- pass
- if not type_is_dict:
- try:
- if type(var_value) is DotDict:
- type_is_dict = 1
- except NameError:
- pass
+ try:
+ if type(var_value) is collections.OrderedDict:
+ type_is_dict = 1
+ except AttributeError:
+ pass
+ try:
+ if type(var_value) is DotDict:
+ type_is_dict = 1
+ except NameError:
+ pass
+ try:
+ if type(var_value) is NormalizedDict:
+ type_is_dict = 1
+ except NameError:
+ pass
if type_is_dict:
for key, value in var_value.iteritems():
ix += 1