diff options
author | Bin Wang <binx.a.wang@intel.com> | 2017-08-10 16:54:57 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-08-12 12:40:17 +0800 |
commit | 1e892df6860dc655f8e570450d74791b84de9928 (patch) | |
tree | 1baa1295a3cbb6a186352992ad4209e885f5c69c /BaseTools/Source/Python | |
parent | 566368148c014702f98d6c37a3934b1c1e60dfd4 (diff) | |
download | edk2-1e892df6860dc655f8e570450d74791b84de9928.tar.gz edk2-1e892df6860dc655f8e570450d74791b84de9928.tar.bz2 edk2-1e892df6860dc655f8e570450d74791b84de9928.zip |
BaseTools: Don't need to add extra quotes when UI string from file
when the UI string is read from files, we don't need to add the extra
quotes. Otherwise, it will cause UI name has this extra quotes.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bin Wang <binx.a.wang@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/GenFds/UiSection.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/GenFds/UiSection.py b/BaseTools/Source/Python/GenFds/UiSection.py index d54e3b2a6d..419e1ee358 100644 --- a/BaseTools/Source/Python/GenFds/UiSection.py +++ b/BaseTools/Source/Python/GenFds/UiSection.py @@ -1,7 +1,7 @@ ## @file
# process UI section generation
#
-# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2007 - 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
@@ -66,7 +66,6 @@ class UiSection (UiSectionClassObject): FileNameStr = GenFdsGlobalVariable.MacroExtend(FileNameStr, Dict)
FileObj = open(FileNameStr, 'r')
NameString = FileObj.read()
- NameString = '\"' + NameString + "\""
FileObj.close()
else:
NameString = ''
|