($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Sean Anderson <sean.anderson@seco.com>
To: meta-freescale@lists.yoctoproject.org,
	Yangbo Lu <yangbo.lu@nxp.com>, Wasim Khan <wasim.khan@nxp.com>,
	Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Cc: Zhenhua Luo <zhenhua.luo@nxp.com>, Ting Liu <ting.liu@nxp.com>,
	Shawn Guo <shawnguo@kernel.org>, Jun Zhu <junzhu@nxp.com>,
	Alison Wang <alison.wang@nxp.com>,
	Priyanka Jain <priyanka.jain@nxp.com>,
	Otavio Salvador <otavio.salvador@ossystems.com.br>,
	Rajesh Bhagat <rajesh.bhagat@nxp.com>,
	Leo Li <leoyang.li@nxp.com>,
	Pramod Kumar <pramod.kumar_1@nxp.com>,
	Mingkai Hu <mingkai.hu@nxp.com>,
	Sean Anderson <sean.anderson@seco.com>
Subject: [rcw][PATCH 3/3] rcw.py: Append to pbi with a bytestring
Date: Tue,  5 Apr 2022 12:35:05 -0400	[thread overview]
Message-ID: <20220405163507.3907691-4-sean.anderson@seco.com> (raw)
In-Reply-To: <20220405163507.3907691-1-sean.anderson@seco.com>

Regular strings cannot be concatenated with byte strings. This fixes the
following error:

> TypeError: can't concat str to bytes

Fixes: 7c47f30 ("Add support of Gen3 family SoCs")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

 rcw.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rcw.py b/rcw.py
index 42a11dc..fc58238 100755
--- a/rcw.py
+++ b/rcw.py
@@ -855,7 +855,7 @@ def create_source():
         l = len(pbi)
         # Deal reasonably with broken PBIs with, e.g., an extra LF
         # at the end
-        pbi += "\0\0\0"
+        pbi += b"\0\0\0"
         l += 3;
         l &= ~3;
         source += "\n.pbi\n"
-- 
2.35.1.1320.gc452695387.dirty



      parent reply	other threads:[~2022-04-05 17:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05 16:35 [rcw][PATCH 0/3] Fix python 2->3 errors when using -r Sean Anderson
2022-04-05 16:35 ` [rcw][PATCH 1/3] rcw.py: Fix indexing with floats Sean Anderson
2022-04-05 16:35 ` [rcw][PATCH 2/3] rcw.py: Fix using ord on ints Sean Anderson
2022-04-05 16:35 ` Sean Anderson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220405163507.3907691-4-sean.anderson@seco.com \
    --to=sean.anderson@seco.com \
    --cc=alison.wang@nxp.com \
    --cc=junzhu@nxp.com \
    --cc=leoyang.li@nxp.com \
    --cc=meta-freescale@lists.yoctoproject.org \
    --cc=mingkai.hu@nxp.com \
    --cc=otavio.salvador@ossystems.com.br \
    --cc=prabhakar.kushwaha@nxp.com \
    --cc=pramod.kumar_1@nxp.com \
    --cc=priyanka.jain@nxp.com \
    --cc=rajesh.bhagat@nxp.com \
    --cc=shawnguo@kernel.org \
    --cc=ting.liu@nxp.com \
    --cc=wasim.khan@nxp.com \
    --cc=yangbo.lu@nxp.com \
    --cc=zhenhua.luo@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).