diff options
author | Gary Lin <glin@suse.com> | 2018-06-25 18:31:32 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-06-27 16:33:24 +0800 |
commit | df29fd130abcc3094b8c5d842e4bfadd91cbf0e8 (patch) | |
tree | ce1e1c045e3deecfab05acc71b01c4fb4e2c9afb /BaseTools | |
parent | aaa4c651bf5ba5fce14e9fe8c2c12687886f745d (diff) | |
download | edk2-df29fd130abcc3094b8c5d842e4bfadd91cbf0e8.tar.gz edk2-df29fd130abcc3094b8c5d842e4bfadd91cbf0e8.tar.bz2 edk2-df29fd130abcc3094b8c5d842e4bfadd91cbf0e8.zip |
BaseTools: Refactor python raise statement
Make "raise" to be compatible with python3.
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools')
-rwxr-xr-x | BaseTools/gcc/mingw-gcc-build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/gcc/mingw-gcc-build.py b/BaseTools/gcc/mingw-gcc-build.py index 20984d3ec8..1cbf396b7b 100755 --- a/BaseTools/gcc/mingw-gcc-build.py +++ b/BaseTools/gcc/mingw-gcc-build.py @@ -507,8 +507,8 @@ class Builder: f = open(logFile, "w") f.write(output) f.close() - raise Exception, 'Failed to %s %s\n' % (stage, module) + \ - 'See output log at %s' % self.config.Relative(logFile) + raise Exception('Failed to %s %s\n' % (stage, module) + \
+ 'See output log at %s' % self.config.Relative(logFile))
else: print('[done]')
|