diff options
author | Yunhua Feng <yunhuax.feng@intel.com> | 2018-07-27 16:02:05 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-13 09:50:45 +0800 |
commit | a09f4c91f785e36f0987aa3a6d7656ba51e6aeda (patch) | |
tree | 0a644e4b34f4fceb65d10465dbb6688fcddddfa5 /BaseTools/Source/Python/GenFds | |
parent | fe3991d63552f2eb25ff728a81a6976a3b1f652b (diff) | |
download | edk2-a09f4c91f785e36f0987aa3a6d7656ba51e6aeda.tar.gz edk2-a09f4c91f785e36f0987aa3a6d7656ba51e6aeda.tar.bz2 edk2-a09f4c91f785e36f0987aa3a6d7656ba51e6aeda.zip |
BaseTools: fix the open file's read and write bugs
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds')
-rw-r--r-- | BaseTools/Source/Python/GenFds/FdfParser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py index cbdc893cdf..ff8ccf21bd 100644 --- a/BaseTools/Source/Python/GenFds/FdfParser.py +++ b/BaseTools/Source/Python/GenFds/FdfParser.py @@ -155,7 +155,7 @@ class IncludeFileProfile : self.FileName = FileName
self.FileLinesList = []
try:
- fsock = open(FileName, "rb", 0)
+ fsock = open(FileName, "r")
try:
self.FileLinesList = fsock.readlines()
for index, line in enumerate(self.FileLinesList):
@@ -216,7 +216,7 @@ class FileProfile : def __init__(self, FileName):
self.FileLinesList = []
try:
- fsock = open(FileName, "rb", 0)
+ fsock = open(FileName, "r")
try:
self.FileLinesList = fsock.readlines()
finally:
|