|
From: <di...@us...> - 2010-02-09 15:30:47
|
Revision: 670
http://safekeep.svn.sourceforge.net/safekeep/?rev=670&view=rev
Author: dimi
Date: 2010-02-09 15:30:39 +0000 (Tue, 09 Feb 2010)
Log Message:
-----------
Use extend consistently. Kudos to
Bertrand Lecervoisier <ber...@la...>
for finding this bug.
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2010-01-25 19:30:10 UTC (rev 669)
+++ safekeep/trunk/safekeep 2010-02-09 15:30:39 UTC (rev 670)
@@ -462,14 +462,14 @@
if type in ('postgres', 'postgresql', 'pgsql'):
if dump['db']:
args = ['pg_dump']
- args.extend('-C')
+ args.extend(['-C'])
else:
args = ['pg_dumpall']
if dump['dbuser']:
args.extend(['-U', dump['dbuser']])
args.extend(opts)
if dump['db']:
- args.append(dump['db'])
+ args.extend([dump['db']])
if dump['dbpasswd']:
(fd, passwdfile) = tempfile.mkstemp()
f = file(fd)
@@ -483,10 +483,10 @@
if dump['dbpasswd']:
args.extend(['-p%s' % dump['dbpasswd']])
if not dump['db']:
- args.append('-A')
+ args.extend(['-A'])
args.extend(opts)
if dump['db']:
- args.append(dump['db'])
+ args.extend([dump['db']])
else:
warn('Invalid database type: ' + type)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|