From eb252c0395c408384d04a987e1cffdd20905ebbf Mon Sep 17 00:00:00 2001 From: Bruno da Silva de Oliveira Date: Sat, 15 Mar 2003 02:51:51 +0000 Subject: [PATCH] - Fixed bug where the permission bits were being copied to the tmp file [SVN r17934] --- pyste/src/CppParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyste/src/CppParser.py b/pyste/src/CppParser.py index 2dd9c9ff..4a4c4310 100644 --- a/pyste/src/CppParser.py +++ b/pyste/src/CppParser.py @@ -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()