diff options
author | Hess Chen <hesheng.chen@intel.com> | 2017-03-07 14:01:33 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-03-09 15:04:33 +0800 |
commit | b7f63a5a53a77bc48b81e7ddad511349addff421 (patch) | |
tree | 7500416cbe973582441cfa6153ecef409bee8cda /BaseTools/Source/Python/Ecc | |
parent | bdecff6c0f23027c643cce70ae2004420dc81324 (diff) | |
download | edk2-b7f63a5a53a77bc48b81e7ddad511349addff421.tar.gz edk2-b7f63a5a53a77bc48b81e7ddad511349addff421.tar.bz2 edk2-b7f63a5a53a77bc48b81e7ddad511349addff421.zip |
BaseTools/ECC: Fix an issue of parameter parser
The original solution of getting parameter name is to skip "_" but
now it doesn't ignore "_" anymore.
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/Source/Python/Ecc')
-rw-r--r-- | BaseTools/Source/Python/Ecc/c.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Ecc/c.py b/BaseTools/Source/Python/Ecc/c.py index d7b9598438..35b7405e55 100644 --- a/BaseTools/Source/Python/Ecc/c.py +++ b/BaseTools/Source/Python/Ecc/c.py @@ -1,7 +1,7 @@ ## @file
# This file is used to be the c coding style checking of ECC tool
#
-# Copyright (c) 2009 - 2016, 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
@@ -271,7 +271,7 @@ def GetIdentifierList(): def StripNonAlnumChars(Str):
StrippedStr = ''
for Char in Str:
- if Char.isalnum():
+ if Char.isalnum() or Char == '_':
StrippedStr += Char
return StrippedStr
|