Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
77e4c057
Commit
77e4c057
authored
11 months ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
dd4hep_base: also convert bytes to str
parent
b8a13e0b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDCore/python/dd4hep_base.py
+2
-0
2 additions, 0 deletions
DDCore/python/dd4hep_base.py
with
2 additions
and
0 deletions
DDCore/python/dd4hep_base.py
+
2
−
0
View file @
77e4c057
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment