MailPing/fileutil.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- mailping-0.0.4.orig/MailPing/fileutil.py
+++ mailping-0.0.4/MailPing/fileutil.py
@@ -1,4 +1,4 @@
-import os, errno, time, socket
+import os, errno, time, socket, shutil
HOSTNAME = socket.gethostname().replace('/', r'\057').replace(':', r'\072')
PID = os.getpid()
@@ -26,4 +26,4 @@
f = file(temp, 'w')
f.write(content)
f.close()
- os.rename(temp, path)
+ shutil.move(temp, path)