From 3bc6628096a2408e72efe4d76fb64547d94474d6 Mon Sep 17 00:00:00 2001 From: zhangyangyang Date: Wed, 5 Sep 2018 13:38:26 +0800 Subject: [PATCH] Python 3 compatibility: fix oldoctinteger For Python 3.0, "oldoctinteger" isn't supported already, and an exception will be raised if a literal has a leading "0" and a second character which is a digit. Change-Id: I1cb8abda9a59fb68b066cddcc4cb394fa56060aa Story: 2003433 Task: 25734 Signed-off-by: zhangyangyang --- cgcs-patch/bin/setup_patch_repo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cgcs-patch/bin/setup_patch_repo b/cgcs-patch/bin/setup_patch_repo index f878c18c..6a2c8240 100755 --- a/cgcs-patch/bin/setup_patch_repo +++ b/cgcs-patch/bin/setup_patch_repo @@ -73,10 +73,10 @@ def main(): # Load the existing metadata allpatches.load_all_metadata(committed_dir, constants.COMMITTED) else: - os.mkdir(output, 0755) - os.mkdir(datadir, 0755) - os.mkdir(committed_dir, 0755) - os.mkdir(pkgdir, 0755) + os.mkdir(output, 0o755) + os.mkdir(datadir, 0o755) + os.mkdir(committed_dir, 0o755) + os.mkdir(pkgdir, 0o755) # Save the current directory, so we can chdir back after orig_wd = os.getcwd()