Skip to content
Snippets Groups Projects
Commit c375742a authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-153: removed strange string conversion lines which do not appear to be...

TMSS-153: removed strange string conversion lines which do not appear to be needed anymore now that we use python3. And if we do need the conversion, then this implementation is wrong, as it converts everyting to string, not just unicode-strings
parent ef7e07a5
No related branches found
No related tags found
1 merge request!102Resolve TMSS-153
......@@ -153,12 +153,6 @@ class parameterset(PyParameterSet):
def adoptDict(self, parms):
for (k,v) in list(parms.items()):
# str(container) calls __repr__ on its items, which ends
# badly for us for lists of unicode strings ([u"a"] -> ['ua']).
# We thus stringify the items first.
if isinstance(v, list):
v = [str(x) for x in v]
self.replace (str(k), str(v)) # k, v always type string
@staticmethod
......
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