mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
tools: pack_v2: do byte conversion only for python v3
Change-Id: Id72dae43e9612844e8db7d58d2891bf9b2619756 Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This commit is contained in:
parent
b0fe779d01
commit
bc38309789
1 changed files with 2 additions and 1 deletions
|
|
@ -1483,7 +1483,8 @@ class Pack(object):
|
|||
image_data = "".join(image_data)
|
||||
its_data = its_tmpl.substitute(desc=desc, images=image_data)
|
||||
|
||||
its_data = bytes(its_data, 'utf-8')
|
||||
if sys.version_info.major >= 3:
|
||||
its_data = bytes(its_data, 'utf-8')
|
||||
its_fp.write(its_data)
|
||||
its_fp.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue