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/Common/LongFilePathOs.py | |
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/Common/LongFilePathOs.py')
-rw-r--r-- | BaseTools/Source/Python/Common/LongFilePathOs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/LongFilePathOs.py b/BaseTools/Source/Python/Common/LongFilePathOs.py index 2cebbb276b..4939a8bc73 100644 --- a/BaseTools/Source/Python/Common/LongFilePathOs.py +++ b/BaseTools/Source/Python/Common/LongFilePathOs.py @@ -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):
|