Use six.ensure_str for `get_file()` output in order to
make code py3 compatible
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit
ae6befb3be46d84da67092aff8bff95d9f646aea)
)
workunits_file = '{tdir}/workunits.list.{role}'.format(tdir=testdir, role=role)
- workunits = sorted(misc.get_file(remote, workunits_file).split('\0'))
+ workunits = sorted(six.ensure_str(misc.get_file(remote, workunits_file)).split('\0'))
assert workunits
try: