Skip to content
Snippets Groups Projects
Commit 77e4c057 authored by Andre Sailer's avatar Andre Sailer
Browse files

dd4hep_base: also convert bytes to str

parent b8a13e0b
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,8 @@ def unicode_2_string(value):
value = value
elif isinstance(value, six.string_types):
value = str(value)
elif isinstance(value, bytes):
value = value.decode()
elif isinstance(value, (list, set, tuple)):
value = [unicode_2_string(x) for x in value]
elif isinstance(value, dict):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment