summaryrefslogtreecommitdiff
path: root/tools/dtoc/test_fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-09 06:36:20 +0300
committerSimon Glass <sjg@chromium.org>2020-12-13 17:58:17 +0300
commit479dd30f4ac3a8ef417a9aafed24c0cad8a866be (patch)
tree005d729338886353043d0678e999f32e6f0037e4 /tools/dtoc/test_fdt.py
parent6a4ccad8e0cb42d53ff7016c1d9cd53b87e4347a (diff)
downloadu-boot-479dd30f4ac3a8ef417a9aafed24c0cad8a866be.tar.xz
patman: Drop tools.ToChar() and ToChars()
This is useful anymore, since we always want to call chr() in Python 3. Drop it and adjust callers to use chr(). Also drop ToChars() which is no-longer used. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/test_fdt.py')
-rwxr-xr-xtools/dtoc/test_fdt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py
index 10e7f33a59..dc6943f733 100755
--- a/tools/dtoc/test_fdt.py
+++ b/tools/dtoc/test_fdt.py
@@ -46,7 +46,7 @@ def _GetPropertyValue(dtb, node, prop_name):
# Add 12, which is sizeof(struct fdt_property), to get to start of data
offset = prop.GetOffset() + 12
data = dtb.GetContents()[offset:offset + len(prop.value)]
- return prop, [tools.ToChar(x) for x in data]
+ return prop, [chr(x) for x in data]
class TestFdt(unittest.TestCase):