From: Bin Wang Date: Thu, 10 Aug 2017 08:54:57 +0000 (+0800) Subject: BaseTools: Don't need to add extra quotes when UI string from file X-Git-Tag: edk2-stable201903~3654 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=1e892df6860dc655f8e570450d74791b84de9928 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 Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bin Wang Reviewed-by: Yonghong Zhu --- 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.
+# Copyright (c) 2007 - 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 @@ -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 = ''