The issue seems to be that guestfs under Python 3 returns bytes rather than str for file reads while still accepting str for replacing and appending. This patch modifies the guestfs backend's read_file method to return str data for Python 3 while preserving existing behaviour for Python 2. I suppose as long as all the files being read are text, this should be fine.
The issue seems to be that guestfs under Python 3 returns bytes rather than str for file reads while still accepting str for replacing and appending. This patch modifies the guestfs backend's read_file method to return str data for Python 3 while preserving existing behaviour for Python 2. I suppose as long as all the files being read are text, this should be fine.