]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/UnitTest/InfBinarySectionTest.py
BaseTools: Refactor python print statements
[mirror_edk2.git] / BaseTools / Source / Python / UPT / UnitTest / InfBinarySectionTest.py
index f3b43ee0bc2754949a725057c948f2b12b053a89..626f17426de77f1a024347f8669a27b2d3f27baf 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 Object.Parser.InfObject as InfObject\r
 from Object.Parser.InfCommonObject import CurrentLine\r
@@ -271,7 +272,7 @@ def PrepareTest(String):
                 TempFile  = open (FileName, "w")    \r
                 TempFile.close()\r
             except:\r
-                print "File Create Error"\r
+                print("File Create Error")\r
         CurrentLine = CurrentLine()\r
         CurrentLine.SetFileName("Test")\r
         CurrentLine.SetLineString(Item[0])\r
@@ -376,11 +377,11 @@ if __name__ == '__main__':
             try:\r
                 InfBinariesInstance.SetBinary(Ver = Ver, ArchList = ArchList)\r
             except:\r
-                print "Test Failed!"\r
+                print("Test Failed!")\r
                 AllPassedFlag = False\r
     \r
     if AllPassedFlag :\r
-        print 'All tests passed...'\r
+        print('All tests passed...')\r
     else:\r
-        print 'Some unit test failed!'\r
+        print('Some unit test failed!')\r
 \r