Make the write_cmake_config.py script python3-compatible

llvm-svn: 350700
This commit is contained in:
Alexander Kornienko 2019-01-09 10:49:44 +00:00
parent 33b192d72b
commit af0d2a69c3
1 changed files with 1 additions and 1 deletions

View File

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