Skip to content

Commit 7efc663

Browse files
committed
Allow values to be proper type as read from yaml config file instead of forcing coersion to str
1 parent ad065e3 commit 7efc663

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/springpython/config/_yaml_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,8 @@ def _convert_prop_def(self, comp, p, name):
398398
return self._convert_dict(p, comp["object"], name)
399399
elif isinstance(p, list):
400400
return self._convert_list(p, comp["object"], name)
401-
elif isinstance(p, unicode):
402-
return ValueDef(name, unicode(p))
403401
else:
404-
return ValueDef(name, str(p))
402+
return ValueDef(name, p)
405403
return None
406404

407405
if hasattr(p, "ref"):

0 commit comments

Comments
 (0)