From 4fa7b3301ef31f2787b9d0bde6694203a67b3ff2 Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Mon, 28 Mar 2016 12:27:50 +0800 Subject: BaseTools: Remove the unnecessary check for RAW File Because the __VerifyFile function already checked whether the file is valid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/GenFds/FdfParser.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'BaseTools') diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py index b86c196067..12d4f2bb73 100644 --- a/BaseTools/Source/Python/GenFds/FdfParser.py +++ b/BaseTools/Source/Python/GenFds/FdfParser.py @@ -2731,8 +2731,6 @@ class FdfParser: if FileName == '}': self.__UndoToken() raise Warning("expected Filename value", self.FileName, self.CurrentLineNumber) - elif not os.path.isfile(FileName): - raise Warning("expected '}'", self.FileName, self.CurrentLineNumber) self.__VerifyFile(FileName) File = PathClass(NormPath(FileName), GenFdsGlobalVariable.WorkSpaceDir) -- cgit v1.2.3