From: Hess Chen Date: Wed, 10 May 2017 01:29:50 +0000 (+0800) Subject: BaseTools/Ecc: Add line break support for exception list X-Git-Tag: edk2-stable201903~4055 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=bcd999d2377d1a34bb3b5c02e4206a8d149999a2 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 Reviewed-by: Yonghong Zhu --- 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.
+# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
# 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