diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-07 07:35:10 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-31 00:25:41 +0300 |
commit | 9fc6ebd8feb4654483b544d12587857cf8938796 (patch) | |
tree | 5c4a4437f449dc03916f783efe6c973b755e9a80 /tools/dtoc/fdt.py | |
parent | 5c53da2b30819514bc309888ad71890494e32295 (diff) | |
download | u-boot-9fc6ebd8feb4654483b544d12587857cf8938796.tar.xz |
dtoc: binman: Drop Python 2 code
Drop a few more Python 2 relics that are no-longer needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r-- | tools/dtoc/fdt.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index 4a78c73725..965106a3b2 100644 --- a/tools/dtoc/fdt.py +++ b/tools/dtoc/fdt.py @@ -460,8 +460,7 @@ class Node: prop_name: Name of property to add val: String value of property """ - if sys.version_info[0] >= 3: # pragma: no cover - val = bytes(val, 'utf-8') + val = bytes(val, 'utf-8') self.AddData(prop_name, val + b'\0') def AddSubnode(self, name): |