]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Tests/CheckPythonSyntax.py
BaseTools:Update mailing list address in BaseTools error messages
[mirror_edk2.git] / BaseTools / Tests / CheckPythonSyntax.py
index 61a048ad5d054b84c2be68c08fb231cdb3cc320b..099920721f5a2cd38d4336f22ed5619feec7ffb9 100644 (file)
@@ -1,15 +1,9 @@
 ## @file\r
 #  Unit tests for checking syntax of Python source code\r
 #\r
-#  Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
-#  This program and the accompanying materials\r
-#  are licensed and made available under the terms and conditions of the BSD License\r
-#  which accompanies this distribution.  The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php\r
-#\r
-#  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
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 \r
 ##\r
@@ -29,7 +23,7 @@ class Tests(TestTools.BaseToolsTest):
     def SingleFileTest(self, filename):\r
         try:\r
             py_compile.compile(filename, doraise=True)\r
-        except Exception, e:\r
+        except Exception as e:\r
             self.fail('syntax error: %s, Error is %s' % (filename, str(e)))\r
 \r
 def MakePythonSyntaxCheckTests():\r
@@ -55,7 +49,7 @@ def MakePythonSyntaxCheckTests():
         newmethod = lambda self: self.SingleFileTest(filename)\r
         setattr(\r
             Tests,\r
-            test, \r
+            test,\r
             newmethod\r
             )\r
 \r