]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Eot/InfParserLite.py
BaseTools: Refactor python print statements
[mirror_edk2.git] / BaseTools / Source / Python / Eot / InfParserLite.py
index 584a95d6f3e43d1ff4ad52f86edd5ca3ee97c54c..24f0d50246e5ba131bfc78ce0e9794d342e3f4ae 100644 (file)
@@ -14,6 +14,7 @@
 ##\r
 # Import Modules\r
 #\r
+from __future__ import print_function\r
 import Common.LongFilePathOs as os\r
 import Common.EdkLogger as EdkLogger\r
 from Common.DataType import *\r
@@ -164,8 +165,8 @@ if __name__ == '__main__':
     Db.InitDatabase()\r
     P = EdkInfParser(os.path.normpath("C:\Framework\Edk\Sample\Platform\Nt32\Dxe\PlatformBds\PlatformBds.inf"), Db, '', '')\r
     for Inf in P.Sources:\r
-        print Inf\r
+        print(Inf)\r
     for Item in P.Macros:\r
-        print Item, P.Macros[Item]\r
+        print(Item, P.Macros[Item])\r
 \r
-    Db.Close()
\ No newline at end of file
+    Db.Close()\r