forked from OSchip/llvm-project
Make the write_cmake_config.py script python3-compatible
llvm-svn: 350700
This commit is contained in:
parent
33b192d72b
commit
af0d2a69c3
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue