BaseTools: remove the not used PyUtility file
the PyUtility is not used, so we remove it. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -477,25 +477,12 @@ def SaveFileOnChange(File, Content, IsBinaryFile=True):
|
||||
EdkLogger.error(None, PERMISSION_FAILURE, "Do not have write permission on directory %s" % DirName)
|
||||
|
||||
try:
|
||||
if GlobalData.gIsWindows:
|
||||
try:
|
||||
from .PyUtility import SaveFileToDisk
|
||||
if not SaveFileToDisk(File, Content):
|
||||
EdkLogger.error(None, FILE_CREATE_FAILURE, ExtraData=File)
|
||||
except:
|
||||
if isinstance(Content, bytes):
|
||||
with open(File, "wb") as Fd:
|
||||
Fd.write(Content)
|
||||
else:
|
||||
with open(File, "w") as Fd:
|
||||
Fd.write(Content)
|
||||
if isinstance(Content, bytes):
|
||||
with open(File, "wb") as Fd:
|
||||
Fd.write(Content)
|
||||
else:
|
||||
if isinstance(Content, bytes):
|
||||
with open(File, "wb") as Fd:
|
||||
Fd.write(Content)
|
||||
else:
|
||||
with open(File, "w") as Fd:
|
||||
Fd.write(Content)
|
||||
with open(File, "w") as Fd:
|
||||
Fd.write(Content)
|
||||
except IOError as X:
|
||||
EdkLogger.error(None, FILE_CREATE_FAILURE, ExtraData='IOError %s' % X)
|
||||
|
||||
|
Reference in New Issue
Block a user