]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Logger/Log.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Logger / Log.py
index ae06a1ae2a503c5836d1eea3caeb17b1c5d1795d..e8c31f00720be14565cad95445b5ee75042b3ca5 100644 (file)
@@ -1,11 +1,11 @@
 ## @file\r
 # This file implements the log mechanism for Python tools.\r
 #\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
-# This program and the accompanying materials are licensed and made available \r
-# under the terms and conditions of the BSD License which accompanies this \r
-# distribution. The full text of the license may be found at \r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# 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
@@ -197,8 +197,8 @@ def Warn(ToolName, Message, File=None, Line=None, ExtraData=None):
 \r
 ## Log ERROR message\r
 #\r
-# Once an error messages is logged, the tool's execution will be broken by \r
-# raising an execption. If you don't want to break the execution later, you \r
+# Once an error messages is logged, the tool's execution will be broken by\r
+# raising an execption. If you don't want to break the execution later, you\r
 # can give "RaiseError" with "False" value.\r
 #\r
 #   @param  ToolName    The name of the tool. If not given, the name of caller\r
@@ -248,13 +248,13 @@ def Error(ToolName, ErrorCode, Message=None, File=None, Line=None, \
     if RaiseError:\r
         raise FatalError(ErrorCode)\r
 \r
-    \r
+\r
 ## Initialize log system\r
 #\r
 def Initialize():\r
     #\r
-    # Since we use different format to log different levels of message into \r
-    # different place (stdout or stderr), we have to use different "Logger" \r
+    # Since we use different format to log different levels of message into\r
+    # different place (stdout or stderr), we have to use different "Logger"\r
     # objects to do this.\r
     #\r
     # For DEBUG level (All DEBUG_0~9 are applicable)\r