Skip to content

Workaround for xenv issue with unicode in Python2

Marco Clemencic requested to merge fix-for-py2-unicode into master

the reason for the problem reported in https://mattermost.web.cern.ch/lhcb/pl/cxargk9bopgiubscubzo3xswze is that the relocation value for a data package is set as unicode instead of str (Python2) and when trying to get the value we have a exception because the conversion to str of the internal variable object of xenv returns [u'a', u'_', u'v', u'a', u'l', u'u', u'e'] instead of 'a_value'.

This change force the value to str fixing the problem.

Merge request reports