# HG changeset patch # User Adrien Di Mascio # Date 1248420315 -7200 # Node ID 1f38b65cbd207eac8183d2d2cd85b2ae985e71d0 # Parent ce1a7ffc6c903fb257d3260597df2823525e2bc1 fix mkstemp() usage in migration commands diff -r ce1a7ffc6c90 -r 1f38b65cbd20 common/migration.py --- a/common/migration.py Thu Jul 23 17:15:05 2009 +0200 +++ b/common/migration.py Fri Jul 24 09:25:15 2009 +0200 @@ -337,7 +337,7 @@ configfile = self.config.main_config_file() if self._option_changes: read_old_config(self.config, self._option_changes, configfile) - newconfig = tempfile.mkstemp() + _, newconfig = tempfile.mkstemp() for optdescr in self._option_changes: if optdescr[0] == 'added': optdict = self.config.get_option_def(optdescr[1]) diff -r ce1a7ffc6c90 -r 1f38b65cbd20 server/serverctl.py --- a/server/serverctl.py Thu Jul 23 17:15:05 2009 +0200 +++ b/server/serverctl.py Fri Jul 24 09:25:15 2009 +0200 @@ -650,7 +650,7 @@ import tempfile srcappid = pop_arg(args, 1, msg="No source application specified !") destappid = pop_arg(args, msg="No destination application specified !") - output = tempfile.mkstemp() + _, output = tempfile.mkstemp() if ':' in srcappid: host, srcappid = srcappid.split(':') _remote_dump(host, srcappid, output, self.config.sudo)