diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-06-10 10:04:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-12 23:42:41 +0100 |
commit | 241e094bcd9212204350f9855257474908f82a3c (patch) | |
tree | c9afbbbd05899ad90b422d350791ac61824da9ed /meta-skeleton/recipes-core | |
parent | 0632c3e69070e340218c1c1c835b2343cd143d8d (diff) | |
download | openembedded-core-241e094bcd9212204350f9855257474908f82a3c.tar.gz openembedded-core-241e094bcd9212204350f9855257474908f82a3c.tar.bz2 openembedded-core-241e094bcd9212204350f9855257474908f82a3c.zip |
npm.bbclass: avoid str/byte conversion problems for PKGV and SUMMARY
In Python3, str.encode() returns byte strings, which later are not
converted back to strings automatically, leading to "TypeError: Can't
convert 'bytes' object to str implicitly" in code which reads PKGV and
SUMMARY and expects to find strings there.
The npm.bbclass must use values for d.setVar() that meet that
expectation, and thus the redundant (and in Python3, harmful)
.encode() gets removed.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta-skeleton/recipes-core')
0 files changed, 0 insertions, 0 deletions