]> code.ossystems Code Review - openembedded-core.git/commit
combo-layer: fix crashes on wrong tempfile usage
authorOlaf Mandel <o.mandel@menlosystems.com>
Mon, 17 Oct 2016 08:16:27 +0000 (08:16 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Oct 2016 10:27:33 +0000 (11:27 +0100)
commitd08f3882a35eec8a042d2501715684444e353605
tree6c919a994efb54fa81b4463a35bd8513e6266b73
parent0059e0661826c857a07c862bcb46162671e0e330
combo-layer: fix crashes on wrong tempfile usage

When calling tempfile.NamedTemporaryFile().write(str()), at least on
Python 3.4.2 this fails with this error:
TypeError: 'str' does not support the buffer interface

Change the file-mode for all such files from binary to text mode.

Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/combo-layer