Show More
@@ -1525,7 +1525,7 b' def mktempcopy(name, emptyok=False, crea' | |||||
1525 | Returns the name of the temporary file. |
|
1525 | Returns the name of the temporary file. | |
1526 | """ |
|
1526 | """ | |
1527 | d, fn = os.path.split(name) |
|
1527 | d, fn = os.path.split(name) | |
1528 | fd, temp = tempfile.mkstemp(prefix='.%s-' % fn, dir=d) |
|
1528 | fd, temp = tempfile.mkstemp(prefix='.%s-' % fn, suffix='~', dir=d) | |
1529 | os.close(fd) |
|
1529 | os.close(fd) | |
1530 | # Temporary files are created with mode 0600, which is usually not |
|
1530 | # Temporary files are created with mode 0600, which is usually not | |
1531 | # what we want. If the original file already exists, just copy |
|
1531 | # what we want. If the original file already exists, just copy |
General Comments 0
You need to be logged in to leave comments.
Login now