diff options
author | Gary Lin <glin@suse.com> | 2018-06-25 18:31:34 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-06-27 16:33:27 +0800 |
commit | 2617a73c3628473bacea887d885bdd1e7808ccc6 (patch) | |
tree | 0f09462094fa26d05c6518460d4ce4dd99ac930e /BaseTools/Source/Python/UPT/Core | |
parent | ccaa7754a29728df0a7485932aab4909f6be116a (diff) | |
download | edk2-2617a73c3628473bacea887d885bdd1e7808ccc6.tar.gz edk2-2617a73c3628473bacea887d885bdd1e7808ccc6.tar.bz2 edk2-2617a73c3628473bacea887d885bdd1e7808ccc6.zip |
BaseTools: Migrate to the new octal literal
Change the octal literals according to PEP3127
https://www.python.org/dev/peps/pep-3127/
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/Source/Python/UPT/Core')
-rw-r--r-- | BaseTools/Source/Python/UPT/Core/FileHook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/UPT/Core/FileHook.py b/BaseTools/Source/Python/UPT/Core/FileHook.py index d8736a8723..67e86f4f74 100644 --- a/BaseTools/Source/Python/UPT/Core/FileHook.py +++ b/BaseTools/Source/Python/UPT/Core/FileHook.py @@ -166,7 +166,7 @@ def _hookrm(path): else:
__built_in_remove__(path)
-def _hookmkdir(path, mode=0777):
+def _hookmkdir(path, mode=0o777):
if GlobalData.gRECOVERMGR:
GlobalData.gRECOVERMGR.bkmkdir(path, mode)
else:
|