summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorHess Chen <hesheng.chen@intel.com>2017-05-10 09:29:50 +0800
committerGuo Mang <mang.guo@intel.com>2017-07-12 11:24:39 +0800
commit54827dec7224c25c08cdb0d2b7dc3b743509bbf4 (patch)
treef23dca423438555573eb1556c7e7cbea1159e2c4 /BaseTools
parent34a17f7ebfd043b5a927404046c85e2eac5b03f4 (diff)
downloadedk2-platforms-54827dec7224c25c08cdb0d2b7dc3b743509bbf4.tar.xz
BaseTools/Ecc: Add line break support for exception list
Add line break support for exception list. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen <hesheng.chen@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/Ecc/Exception.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Ecc/Exception.py b/BaseTools/Source/Python/Ecc/Exception.py
index fffbf30a98..b0882afa62 100644
--- a/BaseTools/Source/Python/Ecc/Exception.py
+++ b/BaseTools/Source/Python/Ecc/Exception.py
@@ -1,7 +1,7 @@
## @file
# This file is used to parse exception items found by ECC tool
#
-# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
@@ -72,7 +72,7 @@ class ExceptionCheck(object):
self.ExceptionList = self.ExceptionListXml.ToList()
def IsException(self, ErrorID, KeyWord, FileID=-1):
- if (str(ErrorID), KeyWord) in self.ExceptionList:
+ if (str(ErrorID), KeyWord.replace('\r\n', '\n')) in self.ExceptionList:
return True
else:
return False