From af0d2a69c353f256b8d1a0954020f6dd4bbce515 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Wed, 9 Jan 2019 10:49:44 +0000 Subject: [PATCH] Make the write_cmake_config.py script python3-compatible llvm-svn: 350700 --- llvm/utils/gn/build/write_cmake_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/gn/build/write_cmake_config.py b/llvm/utils/gn/build/write_cmake_config.py index f0d0a00bf1c2..eba6b4ec521a 100755 --- a/llvm/utils/gn/build/write_cmake_config.py +++ b/llvm/utils/gn/build/write_cmake_config.py @@ -101,7 +101,7 @@ def main(): if not os.path.exists(args.output) or open(args.output).read() != output: open(args.output, 'w').write(output) - os.chmod(args.output, os.stat(args.input).st_mode & 0777) + os.chmod(args.output, os.stat(args.input).st_mode & 0o777) if __name__ == '__main__':