[rcw][PATCH 3/3] rcw.py: Append to pbi with a bytestring
Sean Anderson
Regular strings cannot be concatenated with byte strings. This fixes the
following error:
Signed-off-by: Sean Anderson <sean.anderson@...>
---
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
following error:
TypeError: can't concat str to bytesFixes: 7c47f30 ("Add support of Gen3 family SoCs")
Signed-off-by: Sean Anderson <sean.anderson@...>
---
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