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>
This commit is contained in:
Gary Lin 2018-06-25 18:31:34 +08:00 committed by Yonghong Zhu
parent ccaa7754a2
commit 2617a73c36
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def rmdir(path):
def mkdir(path):
return os.mkdir(LongFilePath(path))
def makedirs(name, mode=0777):
def makedirs(name, mode=0o777):
return os.makedirs(LongFilePath(name), mode)
def rename(old, new):

View File

@ -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: