diff options
author | Yanyan Zhang <yanyanx.zhang@intel.com> | 2017-08-11 10:30:09 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-08-13 12:04:42 +0800 |
commit | 0795920568ca2efbea71be8510f6bda1e8ef3e8a (patch) | |
tree | dbbc1e811b52cc24b778ac1696cc853c5ed90794 /BaseTools/Source/Python/Workspace | |
parent | 1e892df6860dc655f8e570450d74791b84de9928 (diff) | |
download | edk2-0795920568ca2efbea71be8510f6bda1e8ef3e8a.tar.gz edk2-0795920568ca2efbea71be8510f6bda1e8ef3e8a.tar.bz2 edk2-0795920568ca2efbea71be8510f6bda1e8ef3e8a.zip |
BaseTools: Support TabSpace between section tag in DEC file
Per DEC spec, multiple section tag use <TS> to separate, and it can
support Tab, so this patch fix the bug to use Tab.
<TabSpace> ::= {<Tab>} {<Space>}
<TS> ::= <TabSpace>*
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yanyan Zhang <yanyanx.zhang@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace')
-rw-r--r-- | BaseTools/Source/Python/Workspace/MetaFileParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/MetaFileParser.py b/BaseTools/Source/Python/Workspace/MetaFileParser.py index e98352ade5..b756361afd 100644 --- a/BaseTools/Source/Python/Workspace/MetaFileParser.py +++ b/BaseTools/Source/Python/Workspace/MetaFileParser.py @@ -1754,7 +1754,7 @@ class DecParser(MetaFileParser): self._SectionType = []
ArchList = set()
PrivateList = set()
- Line = self._CurrentLine.replace("%s%s" % (TAB_COMMA_SPLIT, TAB_SPACE_SPLIT), TAB_COMMA_SPLIT)
+ Line = re.sub(',[\s]*', TAB_COMMA_SPLIT, self._CurrentLine)
for Item in Line[1:-1].split(TAB_COMMA_SPLIT):
if Item == '':
EdkLogger.error("Parser", FORMAT_UNKNOWN_ERROR,
|