|
From: <di...@us...> - 2010-11-19 16:35:51
|
Revision: 691
http://safekeep.svn.sourceforge.net/safekeep/?rev=691&view=rev
Author: dimi
Date: 2010-11-19 16:35:45 +0000 (Fri, 19 Nov 2010)
Log Message:
-----------
Get rid of the direct subprocess call.
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2010-11-19 16:22:38 UTC (rev 690)
+++ safekeep/trunk/safekeep 2010-11-19 16:35:45 UTC (rev 691)
@@ -957,10 +957,8 @@
if cfg['host']:
cmd.extend(['ssh', verbosity_ssh, '-T', '-i', cfg['key_ctrl'], '-l', cfg['user'], cfg['host'])
cmd.extend(['safekeep', '--client'])
-
- proc = subprocess.Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
- cin = proc.stdin
- cout = proc.stdout
+
+ (cin,cout) = os.popen2(cmd)
cin.write('ALOHA: %s, %s\n' % (PROTOCOL, VERSION))
cin.flush()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|