X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FTests%2FCheckPythonSyntax.py;h=a55b29de4713ff4365c5d7a17ea0146c069f54bb;hb=5b0671c1e514e534c6d5be9604da33bfc2cd0a24;hp=61a048ad5d054b84c2be68c08fb231cdb3cc320b;hpb=00eb12a2c768cae3ca136110baacb5a35e9066a8;p=mirror_edk2.git diff --git a/BaseTools/Tests/CheckPythonSyntax.py b/BaseTools/Tests/CheckPythonSyntax.py index 61a048ad5d..a55b29de47 100644 --- a/BaseTools/Tests/CheckPythonSyntax.py +++ b/BaseTools/Tests/CheckPythonSyntax.py @@ -29,7 +29,7 @@ class Tests(TestTools.BaseToolsTest): def SingleFileTest(self, filename): try: py_compile.compile(filename, doraise=True) - except Exception, e: + except Exception as e: self.fail('syntax error: %s, Error is %s' % (filename, str(e))) def MakePythonSyntaxCheckTests():