|
From: <di...@us...> - 2010-02-09 15:40:26
|
Revision: 671
http://safekeep.svn.sourceforge.net/safekeep/?rev=671&view=rev
Author: dimi
Date: 2010-02-09 15:40:06 +0000 (Tue, 09 Feb 2010)
Log Message:
-----------
Correctly wrap the file descriptor into a file object.
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2010-02-09 15:30:39 UTC (rev 670)
+++ safekeep/trunk/safekeep 2010-02-09 15:40:06 UTC (rev 671)
@@ -472,7 +472,7 @@
args.extend([dump['db']])
if dump['dbpasswd']:
(fd, passwdfile) = tempfile.mkstemp()
- f = file(fd)
+ f = os.fdopen(fd, 'w')
f.write(dump['dbpasswd'])
f.close()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|