diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-03-28 12:27:50 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-13 09:31:06 +0800 |
commit | 8a78b5c75ba3f3a7d1c58bde1a2c120e92f345ae (patch) | |
tree | 417547bf0597609094fb85f75dc4937d921a9d42 /BaseTools/Source | |
parent | d135538d7ab10b1d4e25bcfc5c5c4af1a6df0ee7 (diff) | |
download | edk2-platforms-8a78b5c75ba3f3a7d1c58bde1a2c120e92f345ae.tar.xz |
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 <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit 4fa7b3301ef31f2787b9d0bde6694203a67b3ff2)
Diffstat (limited to 'BaseTools/Source')
-rw-r--r-- | BaseTools/Source/Python/GenFds/FdfParser.py | 2 |
1 files changed, 0 insertions, 2 deletions
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)
|