X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FTests%2FTestTools.py;fp=BaseTools%2FTests%2FTestTools.py;h=be7b4ad4285628bdb942ef9279ccf6b6e29f19df;hb=72443dd25014a8b6209895640af36dec33da51e0;hp=27afd79f2094dd742c72a2b13525bb685bc9f3b9;hpb=5b0671c1e514e534c6d5be9604da33bfc2cd0a24;p=mirror_edk2.git diff --git a/BaseTools/Tests/TestTools.py b/BaseTools/Tests/TestTools.py index 27afd79f20..be7b4ad428 100644 --- a/BaseTools/Tests/TestTools.py +++ b/BaseTools/Tests/TestTools.py @@ -1,3 +1,4 @@ +from __future__ import print_function ## @file # Utility functions and classes for BaseTools unit tests # @@ -91,9 +92,9 @@ class BaseToolsTest(unittest.TestCase): os.remove(path) def DisplayBinaryData(self, description, data): - print description, '(base64 encoded):' + print(description, '(base64 encoded):') b64data = base64.b64encode(data) - print b64data + print(b64data) def DisplayFile(self, fileName): sys.stdout.write(self.ReadTmpFile(fileName))