]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/UnitTest/DecParserTest.py
BaseTools: Refactor python print statements
[mirror_edk2.git] / BaseTools / Source / Python / UPT / UnitTest / DecParserTest.py
index 8b4ece2617a1a7dbbdcc5a1eee0bd9d31f3c0da3..5f0abcafef27927b77c6baa3d5b452340bfede8d 100644 (file)
@@ -11,6 +11,7 @@
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
+from __future__ import print_function\r
 import os\r
 import unittest\r
 \r
@@ -66,7 +67,7 @@ def TestTemplate(TestString, TestFunc):
         # Close file\r
         f.close()\r
     except:\r
-        print 'Can not create temporary file [%s]!' % Path\r
+        print('Can not create temporary file [%s]!' % Path)\r
         exit(-1)\r
 \r
     # Call test function to test\r
@@ -279,6 +280,6 @@ if __name__ == '__main__':
     unittest.FunctionTestCase(TestDecPcd).runTest()\r
     unittest.FunctionTestCase(TestDecUserExtension).runTest()\r
 \r
-    print 'All tests passed...'\r
+    print('All tests passed...')\r
 \r
 \r