Skip to content
Snippets Groups Projects
Commit 330f9176 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

another fix for call to bytes

parent 5c94308b
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ class _base(object):
ofile[group + '/' + k] = parameters[k]
else:
if (type(parameters[k]) == str) and (sys.version_info[0] == 3):
ofile[group + '/' + k][:] = bytes(parameters[k])
ofile[group + '/' + k][:] = bytes(parameters[k], 'ascii')
else:
ofile[group + '/' + k][...] = parameters[k]
ofile.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment