From 1e892df6860dc655f8e570450d74791b84de9928 Mon Sep 17 00:00:00 2001 From: Bin Wang Date: Thu, 10 Aug 2017 16:54:57 +0800 Subject: [PATCH] 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 --- BaseTools/Source/Python/GenFds/UiSection.py | 3 +-- 1 file changed, 1 insertion(+), 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.
+# 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 = '' -- 2.39.2