]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
dtoc: Correct quotes in fdt_util
authorSimon Glass <sjg@chromium.org>
Tue, 26 Jul 2016 00:59:17 +0000 (18:59 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 19 Sep 2016 03:04:39 +0000 (21:04 -0600)
The style is to use single quotes for strings where possible. Adjust this
function.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt_util.py

index 3e25a8b980e2ebf106a74ebc7c81729c7144d0c6..32f41d72d79238cf157697e57f95dc26161de7ae 100644 (file)
@@ -22,7 +22,7 @@ def fdt32_to_cpu(val):
     Return:
         A native-endian integer value
     """
-    return struct.unpack(">I", val)[0]
+    return struct.unpack('>I', val)[0]
 
 def EnsureCompiled(fname):
     """Compile an fdt .dts source file into a .dtb binary blob if needed.