mirror of https://github.com/acidanthera/audk.git
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:
parent
ccaa7754a2
commit
2617a73c36
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue