]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py
UefiCpuPkg: ResetVector Tool Support for Python 3
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Tools / FixupForRawSection.py
index c77438a0ceaf3a9084168556076f67bbdeaab561..de771eba22777f2ba51080308fd00f1c011c85b9 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  Apply fixup to VTF binary image for FFS Raw section\r
 #\r
-#  Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2008 - 2021, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
@@ -15,6 +15,6 @@ c = ((len(d) + 4 + 7) & ~7) - 4
 if c > len(d):\r
     c -= len(d)\r
     f = open(sys.argv[1], 'wb')\r
-    f.write('\x90' * c)\r
+    f.write(b'\x90' * c)\r
     f.write(d)\r
     f.close()\r