unpack_bootimg: fix pylint errors am: e71c440ea1

Original change: https://android-review.googlesource.com/c/platform/system/tools/mkbootimg/+/2044946

Change-Id: I0e35488cb264d9f3e064fea63db0530250233428
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/unpack_bootimg.py b/unpack_bootimg.py
index 9a515ee..5c7d24c 100755
--- a/unpack_bootimg.py
+++ b/unpack_bootimg.py
@@ -58,7 +58,7 @@
     a = os_version >> 14
     b = os_version >> 7 & ((1<<7) - 1)
     c = os_version & ((1<<7) - 1)
-    return '{}.{}.{}'.format(a, b, c)
+    return f'{a}.{b}.{c}'
 
 
 def format_os_patch_level(os_patch_level):
@@ -67,7 +67,7 @@
     y = os_patch_level >> 4
     y += 2000
     m = os_patch_level & ((1<<4) - 1)
-    return '{:04d}-{:02d}'.format(y, m)
+    return f'{y:04d}-{m:02d}'
 
 
 def decode_os_version_patch_level(os_version_patch_level):
@@ -354,7 +354,7 @@
         args.extend(['--board', self.product_name])
 
         if self.dtb_size > 0:
-          args.extend(['--dtb', os.path.join(self.image_dir, 'dtb')])
+            args.extend(['--dtb', os.path.join(self.image_dir, 'dtb')])
 
         if self.header_version > 3:
             args.extend(['--vendor_bootconfig',
@@ -453,7 +453,7 @@
     dtb_offset = page_size * (num_boot_header_pages + num_boot_ramdisk_pages
                              ) # header + vendor_ramdisk
     if info.dtb_size > 0:
-      image_info_list.append((dtb_offset, info.dtb_size, 'dtb'))
+        image_info_list.append((dtb_offset, info.dtb_size, 'dtb'))
 
     create_out_dir(args.out)
     for offset, size, name in image_info_list: