2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 05:02:17 +00:00

- Fixed bug where the permission bits were being copied to the tmp file

[SVN r17934]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-15 02:51:51 +00:00
parent 2c0ec733ca
commit eb252c0395

View File

@@ -59,7 +59,7 @@ class CppParser:
if tail:
tempfilename = tempfile.mktemp('.h')
infilename = tempfilename
shutil.copy(filename, infilename)
shutil.copyfile(filename, infilename)
f = file(infilename, 'a')
f.write('\n\n'+tail)
f.close()